Support resource generator options in exec plugins

This commit is contained in:
Richard Marshall
2019-08-22 08:06:58 -07:00
parent 9b3de82b45
commit 79fbe7c4cc
3 changed files with 49 additions and 15 deletions

View File

@@ -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()