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