# How do you add a label to every resource without changing any selectors?

Kustomize, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/how-do-you-add-a-label-to-every-resource-without-changing-any-selectors

- A. Use commonLabels with a selectors: false option
- B. Use commonAnnotations, which Kubernetes also treats as labels on every object
- C. Use generatorOptions.labels, which applies to every resource
- D. Use labels with pairs, leaving includeSelectors at its default of false

**Answer:** Use labels with pairs, leaving includeSelectors at its default of false

**Explanation:** labels takes a list of entries, each with pairs and options. includeSelectors defaults to false, and includeTemplates adds the labels to pod templates as well. generatorOptions.labels only reaches generated ConfigMaps and Secrets.
