about summary refs log tree commit diff
path: root/templater/templater.go
diff options
context:
space:
mode:
authorMartin Lehmann <martin@folio.no>2018-11-15T12·49+0100
committerVincent Ambo <github@tazj.in>2018-12-11T09·58+0100
commit54db9785d65d8a9dfc78d1cf230810b19f1abffb (patch)
treefcbfd470aaf794ca21bcd2a5ccc1a9dac66a3c12 /templater/templater.go
parent5f433c46c16f4466ad17578eb1762399aa7746d1 (diff)
feat(main): Support specifying kubectl args in ResourceSets
Diffstat (limited to 'templater/templater.go')
-rw-r--r--templater/templater.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/templater/templater.go b/templater/templater.go
index ff4e0efde7b2..e842daeba0a2 100644
--- a/templater/templater.go
+++ b/templater/templater.go
@@ -35,6 +35,7 @@ type RenderedResource struct {
 type RenderedResourceSet struct {
 	Name      string
 	Resources []RenderedResource
+	Args      []string
 }
 
 func LoadAndApplyTemplates(include *[]string, exclude *[]string, c *context.Context) ([]RenderedResourceSet, error) {
@@ -94,6 +95,7 @@ func processResourceSet(ctx *context.Context, rs *context.ResourceSet) (*Rendere
 	return &RenderedResourceSet{
 		Name:      rs.Name,
 		Resources: resources,
+		Args:      rs.Args,
 	}, nil
 }