k8wiz
Kustomize
Medium
Troubleshooting

You change only the options.labels of a configMapGenerator entry. What happens to the ConfigMap's name suffix?

Select your answer:

Show answer and explanation

Answer: It stays the same, because labels are not part of the hash

Explanation

For a ConfigMap, Kustomize hashes only the kind, the name, data and binaryData. Labels and annotations are left out, so the suffix and the references in workloads stay the same and no rollout is triggered. Change a data value to get a new name.

Read more about Kustomize