Skip to content

Commit

Permalink
Add variable reference to pod command,args,env
Browse files Browse the repository at this point in the history
  • Loading branch information
Liujingfang1 committed Jun 19, 2018
1 parent 09ab2bb commit ad3cd47
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/transformers/refvars.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ func NewRefVarTransformer(vars map[string]string) (Transformer, error) {
GroupVersionKind: &schema.GroupVersionKind{Kind: "Job"},
Path: []string{"spec", "template", "spec", "containers", "env", "value"},
},
{
GroupVersionKind: &schema.GroupVersionKind{Kind: "Pod"},
Path: []string{"spec", "containers", "command"},
},
{
GroupVersionKind: &schema.GroupVersionKind{Kind: "Pod"},
Path: []string{"spec", "containers", "args"},
},
{
GroupVersionKind: &schema.GroupVersionKind{Kind: "Pod"},
Path: []string{"spec", "containers", "env", "value"},
},
},
}, nil
}
Expand Down

0 comments on commit ad3cd47

Please sign in to comment.