nameSuffix improperly adds suffix to base resource deployment persistentVolumeClaim/claimName #5856
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened?
When building a base resource deployment and an overlay resource deployment together from a parent kustomization.yaml, persistentVolumeClaim/claimName is patched on both the base resource and the overlay resource.
Example configuration below.
I've observed this behavior on MacOS kustomize 5.4.1 and 5.6.0, and in my cluster running on Linux in kustomize-controller of flux v2.2.2 (uncertain of the kustomize version embedded there)
What did you expect to happen?
The overlay deployment should be the only resource whose persistentVolumeClaim/claimName gets patched with the nameSuffix
How can we reproduce it (as minimally and precisely as possible)?
Expected output
When built from parent kustomization.yaml
Actual output
Correct output when building each app independently:
BUT, incorrect output in one spot when building from parent kustomization.yaml
Kustomize version
5.6.0
Operating system
MacOS
The text was updated successfully, but these errors were encountered: