Kustomize
Hard
Mutation
A patch changes the metadata.name of its target, and the build fails. What allows the rename?
Select your answer:
Show answer and explanation
Answer: Setting options.allowNameChange: true on that patch
Explanation
Kustomize refuses a patch that renames its target unless the patch entry sets options.allowNameChange. options.allowKindChange does the same for changing the kind.
More hard Kustomize questions
- Which query parameter of a remote resource URL sets how long Kustomize waits for the fetch?
- A replacement's target field doesn't exist yet in the target resource. What makes Kustomize add it?
- An overlay sets replicas for a Deployment that a HorizontalPodAutoscaler scales. What happens on each kubectl apply -k?
- A configMapGenerator entry has files: [config/app.properties]. Which key holds the file's content?
- labels sets includeSelectors: false and includeTemplates: true. Where do the labels end up?
- What does the openapi field in a kustomization.yaml provide?