mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Merge pull request #5974 from VannTen/docs/sourceValue
Document `sourceValue` for replacements.
This commit is contained in:
@@ -63,6 +63,7 @@ replacements:
|
||||
delimiter: string
|
||||
index: int
|
||||
create: bool
|
||||
sourceValue: string
|
||||
targets:
|
||||
- select:
|
||||
group: string
|
||||
@@ -88,7 +89,8 @@ replacements:
|
||||
|
||||
| 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 |
|
||||
| `group` | | The group 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
|
||||
match to the specified GVKNN. All the subfields of `source` are optional,
|
||||
but the source selection must resolve to a single resource.
|
||||
Alternatively, you can specify the desired value directly in the `sourceValue`
|
||||
field.
|
||||
|
||||
#### Targets
|
||||
Replacements will be applied to all targets that are matched by the `select` field and
|
||||
|
||||
Reference in New Issue
Block a user