diff --git a/site/content/en/docs/Reference/API/Kustomization File/commonAnnotations.md b/site/content/en/docs/Reference/API/Kustomization File/commonAnnotations.md index 1c72a082a14..b27569702b2 100644 --- a/site/content/en/docs/Reference/API/Kustomization File/commonAnnotations.md +++ b/site/content/en/docs/Reference/API/Kustomization File/commonAnnotations.md @@ -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/ diff --git a/site/content/en/docs/Reference/API/Kustomization File/commonLabels.md b/site/content/en/docs/Reference/API/Kustomization File/commonLabels.md index b9d73b2bb34..2dcaed33942 100644 --- a/site/content/en/docs/Reference/API/Kustomization File/commonLabels.md +++ b/site/content/en/docs/Reference/API/Kustomization File/commonLabels.md @@ -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/ diff --git a/site/content/en/docs/Reference/API/Kustomization File/labels.md b/site/content/en/docs/Reference/API/Kustomization File/labels.md index 7ada7e9c7f4..251852ccb1d 100644 --- a/site/content/en/docs/Reference/API/Kustomization File/labels.md +++ b/site/content/en/docs/Reference/API/Kustomization File/labels.md @@ -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/