mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
fix: tempfile(?)
This commit is contained in:
@@ -160,6 +160,9 @@ func (p *ExecPlugin) invokePlugin(input []byte) ([]byte, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
// Cleanup plugin config file after execution
|
||||||
|
defer os.Remove(args[0])
|
||||||
|
|
||||||
cmd := exec.Command(p.path, args...)
|
cmd := exec.Command(p.path, args...)
|
||||||
cmd.Env = p.getEnv()
|
cmd.Env = p.getEnv()
|
||||||
cmd.Stdin = bytes.NewReader(input)
|
cmd.Stdin = bytes.NewReader(input)
|
||||||
|
|||||||
Reference in New Issue
Block a user