Skip to content

Commit 54ac4e7

Browse files
authored
Merge pull request #108 from Liujingfang1/args
Add variable reference support for args
2 parents d4ad7f8 + 46e8fd7 commit 54ac4e7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pkg/transformers/refvars.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,26 @@ func NewRefVarTransformer(vars map[string]string) (Transformer, error) {
3838
GroupVersionKind: &schema.GroupVersionKind{Kind: "Job"},
3939
Path: []string{"spec", "template", "spec", "containers", "command"},
4040
},
41+
{
42+
GroupVersionKind: &schema.GroupVersionKind{Kind: "StatefulSet"},
43+
Path: []string{"spec", "template", "spec", "initContainers", "args"},
44+
},
45+
{
46+
GroupVersionKind: &schema.GroupVersionKind{Kind: "StatefulSet"},
47+
Path: []string{"spec", "template", "spec", "containers", "args"},
48+
},
49+
{
50+
GroupVersionKind: &schema.GroupVersionKind{Kind: "Deployment"},
51+
Path: []string{"spec", "template", "spec", "initContainers", "args"},
52+
},
53+
{
54+
GroupVersionKind: &schema.GroupVersionKind{Kind: "Deployment"},
55+
Path: []string{"spec", "template", "spec", "containers", "args"},
56+
},
57+
{
58+
GroupVersionKind: &schema.GroupVersionKind{Kind: "Job"},
59+
Path: []string{"spec", "template", "spec", "containers", "args"},
60+
},
4161
},
4262
}, nil
4363
}

0 commit comments

Comments
 (0)