k8wiz
Kustomize
Hard
Troubleshooting

A custom resource refers to a generated ConfigMap by name, but after the build it still uses the name without the hash suffix. Why?

Select your answer:

Show answer and explanation

Answer: Kustomize only updates name references in fields it knows about

Explanation

Kustomize updates references through a list of known fields, such as a Pod's volumes and envFrom. List the CRD under the crds field so Kustomize learns its references, or set disableNameSuffixHash on that generator.