From 46e8fd7065b7fb6567a7866fb598e389256e5842 Mon Sep 17 00:00:00 2001 From: Jingfang Liu Date: Mon, 11 Jun 2018 13:57:34 -0700 Subject: [PATCH] Add variable reference support for args --- pkg/transformers/refvars.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkg/transformers/refvars.go b/pkg/transformers/refvars.go index 7d25a245b..f66ebf2ca 100644 --- a/pkg/transformers/refvars.go +++ b/pkg/transformers/refvars.go @@ -38,6 +38,26 @@ func NewRefVarTransformer(vars map[string]string) (Transformer, error) { GroupVersionKind: &schema.GroupVersionKind{Kind: "Job"}, Path: []string{"spec", "template", "spec", "containers", "command"}, }, + { + GroupVersionKind: &schema.GroupVersionKind{Kind: "StatefulSet"}, + Path: []string{"spec", "template", "spec", "initContainers", "args"}, + }, + { + GroupVersionKind: &schema.GroupVersionKind{Kind: "StatefulSet"}, + Path: []string{"spec", "template", "spec", "containers", "args"}, + }, + { + GroupVersionKind: &schema.GroupVersionKind{Kind: "Deployment"}, + Path: []string{"spec", "template", "spec", "initContainers", "args"}, + }, + { + GroupVersionKind: &schema.GroupVersionKind{Kind: "Deployment"}, + Path: []string{"spec", "template", "spec", "containers", "args"}, + }, + { + GroupVersionKind: &schema.GroupVersionKind{Kind: "Job"}, + Path: []string{"spec", "template", "spec", "containers", "args"}, + }, }, }, nil }