-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
ConfigMap with behavior merge does not get its hash appended #5223
Comments
@matejc Thank you for filing the issue. While going through your example, we would like to understand more about how you are using Could you provide more information about whether you are using /triage needs-information |
@natasha41575 True, in this issue example I am trying to merge ConfigMap in base... But I can reproduce even with this: resources:
- https://github.com/kubernetes-sigs/kustomize//examples/helloWorld?ref=401118728a3ae0415caebd6f925182f02ae2c777
configMapGenerator:
- name: the-map
behavior: merge
literals:
- TEST="test" And I get this (see the name of ConfigMap named the-map - it does not have any hash suffix):
I tested this with:
|
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". 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. |
What happened?
ConfigMap with behavior merge inside configMapGenerator does not get its hash appended, it works if behavior is create
What did you expect to happen?
To produce the configmap with the hash suffix in the metadata.name
How can we reproduce it (as minimally and precisely as possible)?
Just add this snippet:
to the
kustomization.yaml
file in your examples: https://github.com/kubernetes-sigs/kustomize/blob/401118728a3ae0415caebd6f925182f02ae2c777/examples/helloWorld/kustomization.yamlExpected output
Actual output
Kustomize version
5.0.3
Operating system
Linux
The text was updated successfully, but these errors were encountered: