mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Merge pull request #3113 from etefera/add-isSet-to-setter-struct
Add IsSet to SetterDefinition for kyaml release.
This commit is contained in:
@@ -172,6 +172,9 @@ type SetterDefinition struct {
|
|||||||
// live apply/preview. This field is added to the setter definition to record
|
// live apply/preview. This field is added to the setter definition to record
|
||||||
// the package publisher's intent to make the setter required to be set.
|
// the package publisher's intent to make the setter required to be set.
|
||||||
Required bool `yaml:"required,omitempty"`
|
Required bool `yaml:"required,omitempty"`
|
||||||
|
|
||||||
|
// IsSet indicates the specified field has been explicitly assigned.
|
||||||
|
IsSet bool `yaml:"isSet,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (sd SetterDefinition) AddToFile(path string) error {
|
func (sd SetterDefinition) AddToFile(path string) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user