mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 18:10:59 +00:00
Add variable reference to pod command,args,env
This commit is contained in:
@@ -78,6 +78,18 @@ func NewRefVarTransformer(vars map[string]string) (Transformer, error) {
|
|||||||
GroupVersionKind: &schema.GroupVersionKind{Kind: "Job"},
|
GroupVersionKind: &schema.GroupVersionKind{Kind: "Job"},
|
||||||
Path: []string{"spec", "template", "spec", "containers", "env", "value"},
|
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
|
}, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user