-
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
includeTemplates doesn't work #4717
Comments
/triage accepted As a workaround, the bug only seems to occur if the @aibarbetta as the author of this feature, would you be able to look into this bug? |
/assign |
The culprit is found here: kustomize/api/internal/target/kusttarget_configplugin.go Lines 289 to 292 in 5948f6a
The kustomize/api/konfig/builtinpluginconsts/commonlabels.go Lines 30 to 32 in d17ef91
As a bonus, the flag shouldn't be hardcoded to only |
[address #4717] create template/metadata when using includeTemplates if not present
Revert "[address #4717] create template/metadata when using includeTemplates if not present"
[address #4717] Re-do create template/metadata when using includeTemplates if not present
Describe the bug
Labels aren't added to the pod metadata and the Deployment spec.
includeTemplates
has no effect.Files that can reproduce the issue
kustomization.yaml
deployment.yaml
Expected output
The Pod should have all defined labels from (
commonLabels
andlabels
).Actual output
The Pod has only the labels from
commonLabels
.Kustomize version
{Version:kustomize/v4.5.5 GitCommit:daa3e5e2c2d3a4b8c94021a7384bfb06734bcd26 BuildDate:2022-05-20T20:25:40Z GoOs:linux GoArch:amd64}
Platform
Ubuntu 20.04 LTS inside WSL
The text was updated successfully, but these errors were encountered: