mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-12 01:14:22 +00:00
rename ownedBy json value to setBy
This commit is contained in:
@@ -80,12 +80,12 @@ To create a substitution for a field see: `kustomize help config set create`
|
|||||||
# dir/resources.yaml
|
# dir/resources.yaml
|
||||||
...
|
...
|
||||||
metadata:
|
metadata:
|
||||||
name: test-app1 # {"substitutions":[{"name":"prefix","marker":"PREFIX-","value":"test-"}],"ownedBy":"dev","description":"test environment"}
|
name: test-app1 # {"substitutions":[{"name":"prefix","marker":"PREFIX-","value":"test-"}],"setBy":"dev","description":"test environment"}
|
||||||
...
|
...
|
||||||
---
|
---
|
||||||
...
|
...
|
||||||
metadata:
|
metadata:
|
||||||
name: test-app2 # {"substitutions":[{"name":"prefix","marker":"PREFIX-","value":"test-"}],"ownedBy":"dev","description":"test environment"}
|
name: test-app2 # {"substitutions":[{"name":"prefix","marker":"PREFIX-","value":"test-"}],"setBy":"dev","description":"test environment"}
|
||||||
...
|
...
|
||||||
|
|
||||||
Revert substitution:
|
Revert substitution:
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ FieldMeta Schema read by `sub`:
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "A description of the field's current value. Optional."
|
"description": "A description of the field's current value. Optional."
|
||||||
},
|
},
|
||||||
"ownedBy": {
|
"setBy": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The current owner of the field. Optional."
|
"description": "The current owner of the field. Optional."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -262,12 +262,12 @@ var SubExamples = `
|
|||||||
# dir/resources.yaml
|
# dir/resources.yaml
|
||||||
...
|
...
|
||||||
metadata:
|
metadata:
|
||||||
name: test-app1 # {"substitutions":[{"name":"prefix","marker":"PREFIX-","value":"test-"}],"ownedBy":"dev","description":"test environment"}
|
name: test-app1 # {"substitutions":[{"name":"prefix","marker":"PREFIX-","value":"test-"}],"setBy":"dev","description":"test environment"}
|
||||||
...
|
...
|
||||||
---
|
---
|
||||||
...
|
...
|
||||||
metadata:
|
metadata:
|
||||||
name: test-app2 # {"substitutions":[{"name":"prefix","marker":"PREFIX-","value":"test-"}],"ownedBy":"dev","description":"test environment"}
|
name: test-app2 # {"substitutions":[{"name":"prefix","marker":"PREFIX-","value":"test-"}],"setBy":"dev","description":"test environment"}
|
||||||
...
|
...
|
||||||
|
|
||||||
Revert substitution:
|
Revert substitution:
|
||||||
@@ -421,7 +421,7 @@ FieldMeta Schema read by ` + "`" + `sub` + "`" + `:
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "A description of the field's current value. Optional."
|
"description": "A description of the field's current value. Optional."
|
||||||
},
|
},
|
||||||
"ownedBy": {
|
"setBy": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The current owner of the field. Optional."
|
"description": "The current owner of the field. Optional."
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ type FieldMeta struct {
|
|||||||
// Substitutions are substitutions that may be performed against this field
|
// Substitutions are substitutions that may be performed against this field
|
||||||
Substitutions []Substitution `yaml:"substitutions,omitempty" json:"substitutions,omitempty"`
|
Substitutions []Substitution `yaml:"substitutions,omitempty" json:"substitutions,omitempty"`
|
||||||
// OwnedBy records the owner of this field
|
// OwnedBy records the owner of this field
|
||||||
OwnedBy string `yaml:"ownedBy,omitempty" json:"ownedBy,omitempty"`
|
OwnedBy string `yaml:"setBy,omitempty" json:"setBy,omitempty"`
|
||||||
// DefaultedBy records that this field was default, but may be changed by other owners
|
// DefaultedBy records that this field was default, but may be changed by other owners
|
||||||
DefaultedBy string `yaml:"defaultedBy,omitempty" json:"defaultedBy,omitempty"`
|
DefaultedBy string `yaml:"defaultedBy,omitempty" json:"defaultedBy,omitempty"`
|
||||||
// Description is a description of the current field value, e.g. why it was set
|
// Description is a description of the current field value, e.g. why it was set
|
||||||
|
|||||||
Reference in New Issue
Block a user