Skip to content

Commit

Permalink
Add fields to kustomization file ref
Browse files Browse the repository at this point in the history
  • Loading branch information
ncapps committed Jan 31, 2024
1 parent 7e392f9 commit 6da1550
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,18 @@ linkTitle: "commonAnnotations"
type: docs
weight: 3
description: >
Add annotations to add all resources.
Add Annotations to all objects.
---
`apiVersion: kustomize.config.k8s.io/v1beta1`

The Tasks section contains examples of how to use [`commonAnnotations`](/docs/tasks/labels_and_annotations/).
See the [Tasks section] for examples of how to use `commonAnnotations`.

### commonAnnotations
Adds [Annotations] to all objects.

* **commonAnnotations** (map[string]string)

Annotations to add to all objects.

[Tasks section]: /docs/tasks/labels_and_annotations/
[Annotations]: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
Original file line number Diff line number Diff line change
Expand Up @@ -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 objects.
---
`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 objects.

* **commonLabels** (map[string]string)

Labels to add to all objects. Labels will be added to the object 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/
28 changes: 26 additions & 2 deletions site/content/en/docs/Reference/API/Kustomization File/labels.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,31 @@ linkTitle: "labels"
type: docs
weight: 10
description: >
Add labels and optionally selectors to all resources.
Add labels and optionally selectors to all objects.
---
`apiVersion: kustomize.config.k8s.io/v1beta1`

The Tasks section contains examples of how to use [`labels`](/docs/tasks/labels_and_annotations/).
See the [Tasks section] for examples of how to use `labels`.

### labels
Adds labels and optionally selectors to all objects.

* **labels** ([]Label)

Labels to add to all objects.

* **pairs** (map[string]string)

The key-value pairs for labels to add.

* **includeSelectors** (bool), optional

Indicates if the

* **includeTemplate** (bool), optional

* **fields* ([]FieldSpec), optional


[Tasks section]: /docs/tasks/labels_and_annotations/
[Labels and Selectors]: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/

0 comments on commit 6da1550

Please sign in to comment.