Kustomize
Medium
Mutation
A patch target sets kind: Deployment and labelSelector: tier=backend. Which resources does the patch change?
Select your answer:
Show answer and explanation
Answer: Every Deployment that has the label tier=backend
Explanation
A patch target selects by group, version, kind, name, namespace, labelSelector and annotationSelector, and a resource has to match every field you set. Leaving out the name lets one patch change many objects.
More medium Kustomize questions
- What are Kustomize components for?
- Which field replaces the deprecated vars for copying a value from one resource into another?
- How do you reference a base from a Git repository under resources?
- kustomize build fails because a patch file sits outside the kustomization's directory. What does the default load restrictor require?
- How do you generate a TLS Secret with Kustomize?
- What does sortOptions.order: fifo change in the build output?