Skip to content

Use replacements instead of vars in config/default #9187

@mbobrovskyi

Description

@mbobrovskyi

What would you like to be cleaned:

When running kustomize build config/default/ with CertManager enabled, we see the following warning:

# Warning: 'vars' is deprecated. Please use 'replacements' instead. [EXPERIMENTAL] Run 'kustomize edit fix' to update your Kustomization automatically.
2026/02/12 19:48:34 well-defined vars that were never replaced: VISIBILITY_CERTIFICATE_NAMESPACE,CERTIFICATE_NAME,CERTIFICATE_NAMESPACE,VISIBILITY_CERTIFICATE_NAME

Why is this needed:

To avoid using a deprecated feature, and as mentioned here, it will not be included in the kustomize.config.k8s.io/v1 Kustomization API.

How to reproduce it (as minimally and precisely as possible):

  1. config/default/kustomization.yaml: uncomment certmanager resource, prometheus resource, and the vars: block
  2. config/components/prometheus/kustomization.yaml: uncomment the patches: block
kustomize build config/default/

Metadata

Metadata

Assignees

Labels

kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions