-
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
Generated configmap hash suffix not applied to patched resource when nameSuffix or namePrefix is #2609
Comments
This still happens as of 3.6.1. My workaround at the moment is to use a variable to reflect the correct configmap name |
Thanks for the hint. I'd so happily avoided using any variables so far :(. |
Looks like the same as #2717 |
1 task
Thanks to @msk we now have a concrete test for this! Added to triage at https://github.com/kubernetes-sigs/kustomize/projects/2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi all. Firstly and quickly, I'm enjoying kustomize, thank you for your work.
I also managed to reproduce with a build from master at revision
9b5ce5002a9a183ff77c57fd48b17bd021c2510d
.I'm facing an issue where applying a
nameSuffix
ornamePrefix
to an overlay results in a patch not being applied with theconfigmapKeyRef.name
orconfigMapRef.name
I expected.I reproduce the file structure below, but if you prefer you can obtain the files from:
git pull https://github.com/msk-/kustomize-issue
Then
kustomize build
in the directory root to see the unexpected output, specifically the absence of a generated suffix on the deployment.spec.template.spec.containers[0].env[0].valueFrom.configMapKeyRef.name
and.spec.template.spec.containers[0].envFrom[0].configMapRef.name
./handlers/kustomization.yaml
, remove the first line containing thenameSuffix
fieldkustomize build
to see the output I had expected, sans the namenameSuffix
Result of step (1) above:
Result of step (3) above:
I note that
behavior: replace
also does not result in the hash suffix being applied. But removing thebehavior
field (and the "mysql
" dependency) does result in a hash suffix on the config map names.Edit: Casting around a little, this may be related: #1301 (comment)
The text was updated successfully, but these errors were encountered: