-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] How can i use variables in kustomization.yaml file #4787
Comments
@Kristin0: This issue is currently awaiting triage. SIG CLI takes a lead on issue triage for this repo, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
hi @Kristin0 I think having variables like that is against the kustomize principles of having clean builds (https://kubectl.docs.kubernetes.io/faq/kustomize/eschewedfeatures/#build-time-side-effects-from-cli-args-or-env-variables). You can use something like that |
Ok, thanks |
@tdi is correct. Variables go against a core goal of Kustomize, namely to provide a template-free solution. The "vars" feature you referenced does not really work like variables and is being removed in favour of replacements. #4049 /triage out-of-scope |
@KnVerey: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@KnVerey |
At a glance that doc looks fine to me, but is about advanced transformer configuration. It does mention the existing vars feature (which as mentioned above is not actually variables, despite the name) as an example; that feature is being deprecated but still works in current versions, as advised in the linked doc. The best docs for Kustomize are currently in the SIG CLI site: https://kubectl.docs.kubernetes.io. There is a slowly progressing initiative to consolidate the various sources into a dedicated site: #4338. |
For example i want in file
kustomization.yaml
smth like thisThe text was updated successfully, but these errors were encountered: