-
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
configMapGenerator unable to replace ConfigMap from a Helm chart #4799
Comments
@cjyar: 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 @cjyar, I see the same error running kustomize v4.5.7 on macOS using the given I don't believe this is a bug. Kustomize runs its built-in kustomization fields in a certain order; the An easy workaround is to move the apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
helmCharts:
- name: vault
namespace: vault
releaseName: vault
repo: https://helm.releases.hashicorp.com
version: 0.22.0
generators:
- configmap-generator.yaml
apiVersion: builtin
kind: ConfigMapGenerator
behavior: replace
metadata:
name: vault-config
namespace: vault
literals:
- thing=stuff
options:
disableNameSuffixHash: true Hope this helps. |
/kind support Feel free to re-open with more detail if the proposed solution doesn't work for you. |
@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. |
Is there any way i can achieve the same on Thanks |
Just for anyone reading--the recommendation above doesn't seem to work with either the |
Describe the bug
Kustomize is unable to replace the contents of a ConfigMap if the ConfigMap comes from the Helm generator.
Files that can reproduce the issue
kustomization.yaml
Expected output
It should generate manifests
Actual output
If I remove
behavior: replace
then I get this instead:Kustomize version
Platform
macOS
The text was updated successfully, but these errors were encountered: