Using nameSuffix is applied to everything but spec/template/spec/volumes/persistentVolumeClaim/claimName of a deployment #5690
Labels
help wanted
Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What happened?
I'm using Kustomize v5.2.1, and trying to add environment related suffix (i.e. -prod, -dev) using nameSuffix in overlays. When I deploy the configuration, I see resources such as pvc, service are properly deployed with the right naming (i.e. grafana-prod), but my deployment can't start, because it can't find the pvc with name "grafana".
My configuration:
base/grafana-persistentvolumeclaim.yaml
base/kustomization.yaml
overlays/prod/kustomization.yaml
P.S> Also tried this approach, but this didn't work either https://github.com/kubernetes-sigs/kustomize/blob/master/examples/transformerconfigs/README.md
P.S2> Using transformers, placed into the overlays like this - worked. But for me it looks like a workaround...
What did you expect to happen?
I was expecting, that nameSuffix will be properly applied and the claimName of the PVC in deployment template would also become suffixed with "-prod".
How can we reproduce it (as minimally and precisely as possible)?
The configuration can be used, as I wrote in the previous section.
Expected output
No response
Actual output
No response
Kustomize version
5.2.1
Operating system
None
The text was updated successfully, but these errors were encountered: