mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-10 08:20:59 +00:00
Add kustomization and transformer references (#5523)
* Add fields to kustomization file ref * Address grammar feedback. * labels.fields
This commit is contained in:
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user