forked from kubernetes-sigs/kustomize
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add fields to kustomization file ref
- Loading branch information
Showing
8 changed files
with
178 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
site/content/en/docs/Reference/API/Transformers/LabelTransformer.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: "LabelTransformer" | ||
linkTitle: "LabelTransformer" | ||
weight: 2 | ||
date: 2024-02-01 | ||
description: > | ||
LabelTransformer adds labels to user-input resources. | ||
--- | ||
|
||
See [Transformers]({{< relref "../Transformers" >}}) for common required fields. | ||
|
||
* **apiVersion**: builtin | ||
* **kind**: LabelTransformer | ||
* **metadata** ([ObjectMeta](https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/object-meta/#ObjectMeta)) | ||
|
||
Standard object's metadata. | ||
|
||
* **labels** (map[string]string) | ||
|
||
Map of labels that LabelTransformer will add to resources. | ||
|
||
If not specified, LabelTransformer leaves the resources unchanged. | ||
|
||
* **fieldSpecs** (\[\][FieldSpec]({{< relref "../Common%20Definitions/FieldSpec.md" >}})) | ||
|
||
fieldSpecs specifies the field on each resource that LabelTransformer should add the labels to. | ||
It essentially allows the user to re-define the field path of the Kubernetes labels field from `metadata/labels` for different resources. | ||
|
||
If not specified, LabelTransformer applies the labels to the `metadata/labels` field of all resources. |
36 changes: 36 additions & 0 deletions
36
site/content/en/docs/Reference/API/Transformers/NamespaceTransformer.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: "NamespaceTransformer" | ||
linkTitle: "NamespaceTransformer" | ||
weight: 4 | ||
date: 2024-02-06 | ||
description: > | ||
NamespaceTransformer sets the Namespace of user-input namespaced resources. | ||
--- | ||
|
||
See [Transformers]({{< relref "../Transformers" >}}) for common required fields. | ||
|
||
* **apiVersion**: builtin | ||
* **kind**: NamespaceTransformer | ||
* **metadata** ([ObjectMeta](https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/object-meta/#ObjectMeta)) | ||
|
||
Standard object's metadata. | ||
|
||
* **fieldSpecs** (\[\][FieldSpec]({{< relref "../Common%20Definitions/FieldSpec.md" >}})), optional | ||
|
||
fieldSpecs allows the user to re-define the field path of the Kubernetes Namespace field from `metadata/namespace` for different resources. | ||
|
||
If not specified, NamespaceTransformer applies the namespace to the `metadata/namespace` field of all resources. | ||
|
||
* **unsetOnly** (bool), optional | ||
|
||
UnsetOnly indicates whether the NamespaceTransformer will only set namespace fields that are currently unset. Defaults to false. | ||
|
||
* **setRoleBindingSubjects** (RoleBindingSubjectMode), optional | ||
|
||
SetRoleBindingSubjects determines which subject fields in RoleBinding and ClusterRoleBinding objects will have their namespace fields set. Overrides field specs provided for these types. | ||
|
||
_RoleBindingSubjectMode specifies which subjects will be set. It can be one of three possible values:_ | ||
|
||
- `defaultOnly` (default): namespace will be set only on subjects named "default". | ||
- `allServiceAccounts`: Namespace will be set on all subjects with `kind: ServiceAccount`. | ||
- `none`: All subjects will be skipped. |
29 changes: 29 additions & 0 deletions
29
site/content/en/docs/Reference/API/Transformers/PrefixTransformer.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: "PrefixTransformer" | ||
linkTitle: "PrefixTransformer" | ||
weight: 3 | ||
date: 2024-02-01 | ||
description: > | ||
PrefixTransformer prefixes user-input resource names. | ||
--- | ||
|
||
See [Transformers]({{< relref "../Transformers" >}}) for common required fields. | ||
|
||
* **apiVersion**: builtin | ||
* **kind**: PrefixTransformer | ||
* **metadata** ([ObjectMeta](https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/object-meta/#ObjectMeta)) | ||
|
||
Standard object's metadata. | ||
|
||
* **prefix** (string) | ||
|
||
Prefix that PrefixTransformer will add to resources. | ||
|
||
If not specified, PrefixTransformer leaves the resources unchanged. | ||
|
||
* **fieldSpecs** (\[\][FieldSpec]({{< relref "../Common%20Definitions/FieldSpec.md" >}})) | ||
|
||
fieldSpecs specifies the field on each resource that PrefixTransformer should add the prefix to. | ||
It essentially allows the user to re-define the field path of the Kubernetes name field from `metadata/name` for different resources. | ||
|
||
If not specified, PrefixTransformer applies the prefix to the `metadata/name` field of all resources. |