mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Support resource generator options in exec plugins
This commit is contained in:
@@ -242,6 +242,11 @@ func (r *Resource) AsYAML() ([]byte, error) {
|
||||
return yaml.JSONToYAML(json)
|
||||
}
|
||||
|
||||
// SetOptions updates the generator options for the resource.
|
||||
func (r *Resource) SetOptions(o *types.GenArgs) {
|
||||
r.options = o
|
||||
}
|
||||
|
||||
// Behavior returns the behavior for the resource.
|
||||
func (r *Resource) Behavior() types.GenerationBehavior {
|
||||
return r.options.Behavior()
|
||||
|
||||
Reference in New Issue
Block a user