mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
Document sourceValue for replacements.
Co-authored-by: Steven E. Harris <seh@panix.com>
This commit is contained in:
@@ -63,6 +63,7 @@ replacements:
|
|||||||
delimiter: string
|
delimiter: string
|
||||||
index: int
|
index: int
|
||||||
create: bool
|
create: bool
|
||||||
|
sourceValue: string
|
||||||
targets:
|
targets:
|
||||||
- select:
|
- select:
|
||||||
group: string
|
group: string
|
||||||
@@ -88,7 +89,8 @@ replacements:
|
|||||||
|
|
||||||
| Field | Required| Description | Default |
|
| Field | Required| Description | Default |
|
||||||
| -----------: | :----: | ----------- | ---- |
|
| -----------: | :----: | ----------- | ---- |
|
||||||
| `source`| ✔️ | The source of the value |
|
| `source`| | The source of the value |
|
||||||
|
| `sourceValue`| | The literal value to use instead of a source |
|
||||||
| `target`| ✔️ | The N fields to write the value to |
|
| `target`| ✔️ | The N fields to write the value to |
|
||||||
| `group` | | The group of the referent |
|
| `group` | | The group of the referent |
|
||||||
| `version`| | The version of the referent
|
| `version`| | The version of the referent
|
||||||
@@ -108,6 +110,8 @@ replacements:
|
|||||||
The source field is a selector that determines the source of the value by finding a
|
The source field is a selector that determines the source of the value by finding a
|
||||||
match to the specified GVKNN. All the subfields of `source` are optional,
|
match to the specified GVKNN. All the subfields of `source` are optional,
|
||||||
but the source selection must resolve to a single resource.
|
but the source selection must resolve to a single resource.
|
||||||
|
Alternatively, you can specify the desired value directly in the `sourceValue`
|
||||||
|
field.
|
||||||
|
|
||||||
#### Targets
|
#### Targets
|
||||||
Replacements will be applied to all targets that are matched by the `select` field and
|
Replacements will be applied to all targets that are matched by the `select` field and
|
||||||
|
|||||||
Reference in New Issue
Block a user