Add kustomization and transformer references (#5523)

* Add fields to kustomization file ref

* Address grammar feedback.

* labels.fields
This commit is contained in:
Nick
2024-02-26 10:25:24 -08:00
committed by GitHub
parent 6ffcc08591
commit d3329453a2
10 changed files with 219 additions and 10 deletions

View File

@@ -4,7 +4,19 @@ linkTitle: "commonLabels"
type: docs
weight: 4
description: >
Add labels and selectors to add all resources.
Add Labels and Selectors to all resources.
---
`apiVersion: kustomize.config.k8s.io/v1beta1`
The Tasks section contains examples of how to use [`commonLabels`](/docs/tasks/labels_and_annotations/).
See the [Tasks section] for examples of how to use `commonLabels`.
### commonLabels
Adds [Labels and Selectors] to resources.
* **commonLabels** (map[string]string)
Map of labels to add to all resources. Labels will be added to resource selector and template fields where applicable.
[Tasks section]: /docs/tasks/labels_and_annotations/
[Labels and Selectors]: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/