What happened?
kustomize v5.8.1 does not use the correct name of a generated configMap or secret when patching a deployment generated by Helm. It just uses the name without the hash. The same works flawlessly with kustomize v5.7.1
Please see the attached reproducer example.
kustomize-helm-configMap-reproducer.tgz
What did you expect to happen?
Same behaviour as in kustomize v5.7.1 and earlier.
How can we reproduce it (as minimally and precisely as possible)?
see attached files
Expected output
apiVersion: v1
data:
config: foo
kind: ConfigMap
metadata:
name: test-config-g46hh6k8tf
--
secret:
defaultMode: 292
secretName: test-secret-gh24bh7t8g
- configMap:
defaultMode: 292
name: test-config-g46hh6k8tf
Actual output
apiVersion: v1
data:
config: foo
kind: ConfigMap
metadata:
name: test-config-g46hh6k8tf
--
secret:
defaultMode: 292
secretName: test-secret
- configMap:
defaultMode: 292
name: test-config
Kustomize version
v5.8.1
Operating system
MacOS
What happened?
kustomize v5.8.1 does not use the correct name of a generated configMap or secret when patching a deployment generated by Helm. It just uses the name without the hash. The same works flawlessly with kustomize v5.7.1
Please see the attached reproducer example.
kustomize-helm-configMap-reproducer.tgz
What did you expect to happen?
Same behaviour as in kustomize v5.7.1 and earlier.
How can we reproduce it (as minimally and precisely as possible)?
see attached files
Expected output
Actual output
Kustomize version
v5.8.1
Operating system
MacOS