Skip to content

Commit ad3cd47

Browse files
committed
Add variable reference to pod command,args,env
1 parent 09ab2bb commit ad3cd47

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkg/transformers/refvars.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,18 @@ func NewRefVarTransformer(vars map[string]string) (Transformer, error) {
7878
GroupVersionKind: &schema.GroupVersionKind{Kind: "Job"},
7979
Path: []string{"spec", "template", "spec", "containers", "env", "value"},
8080
},
81+
{
82+
GroupVersionKind: &schema.GroupVersionKind{Kind: "Pod"},
83+
Path: []string{"spec", "containers", "command"},
84+
},
85+
{
86+
GroupVersionKind: &schema.GroupVersionKind{Kind: "Pod"},
87+
Path: []string{"spec", "containers", "args"},
88+
},
89+
{
90+
GroupVersionKind: &schema.GroupVersionKind{Kind: "Pod"},
91+
Path: []string{"spec", "containers", "env", "value"},
92+
},
8193
},
8294
}, nil
8395
}

0 commit comments

Comments
 (0)