k8wiz
Kustomize
Hard
Generation

A replacement copies metadata.name of a ConfigMap from configMapGenerator into an annotation. The ConfigMap is built as blue-6ct58987ht. What does the annotation get?

Select your answer:

Show answer and explanation

Answer: blue, because hash suffixes are added after replacements run

Explanation

Kustomize adds hash suffixes once, after every kustomization has run its transformers, and replacements are transformers. The upstream test for this case expects blue and links it to issue 4034. References Kustomize tracks, like envFrom and volumes, do get rewritten to the hashed name afterwards.

Read more about Kustomize