Kustomize
Hard
Mutation
A patch target sets name: app. Does it also match a Deployment named app-worker?
Select your answer:
Show answer and explanation
Answer: No, target names are anchored regexes, so app means ^app$
Explanation
The name and namespace fields of a patch target are regular expressions anchored at both ends. Write name: app.* to match every name that starts with app, or select with labelSelector instead.
More hard Kustomize questions
- A patch changes the metadata.name of its target, and the build fails. What allows the rename?
- 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?