-
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
Cannot override ConfigMap entries that were defined in a patch #4419
Comments
@NickLarsenNZ: 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. |
You're right that this is the problem. As stated in our docs:
Even when merge mode is enabled, configMapGenerator is still a generator and still runs before the patches (which is a transformer). Transformers can be reordered by using the more advanced full object configuration mode in the /close |
@KnVerey: The label(s) 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: 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. |
I'm unable to override ConfigMap entries that were already defined in a patch.
kustomization.yml
Expected output
A config map containing the entries from the patch, a new value, and an updated value.
Actual output
The entries from the patch, and new entries.
Kustomize version
Platform
macos
Additional context
I don't have trouble with this when it's done in an overlay. I suspect it has to do with the
resources
,patch
andconfigMapGenerator
being in the same overlay.The text was updated successfully, but these errors were encountered: