# 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?

Kustomize, Hard (Expert), Generation. https://k8wiz.com/uquiz/a-replacement-copies-metadataname-of-a-configmap-from-configmapgenerator-into-an-annotation-the-configmap-is-built-as-blue-6ct58

- A. blue, because hash suffixes are added after replacements run
- B. blue-6ct58987ht, because replacements read the final name
- C. An empty value, because generated names aren't known yet
- D. The build fails, because generated resources can't be a source

**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.
