mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-30 18:01:21 +00:00
feat: add exec-plugin argument and environment support (#5316)
* feat: add exec-plugin argument and environment support Previously, the documentation lead to think that this is working, but it's not been implemented. This PR is fixing this Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com> * chore: disable linting for env var split Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com> --------- Signed-off-by: Matthias Riegler <matthias.riegler@ankorstore.com>
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
func TestFunctionFilter_Filter(t *testing.T) {
|
||||
wd, err := os.Getwd()
|
||||
require.NoError(t, err)
|
||||
var tests = []struct {
|
||||
tests := []struct {
|
||||
name string
|
||||
input []string
|
||||
functionConfig string
|
||||
@@ -57,8 +57,9 @@ metadata:
|
||||
},
|
||||
expectedError: "",
|
||||
instance: exec.Filter{
|
||||
Path: "sed",
|
||||
Args: []string{"s/Deployment/StatefulSet/g"},
|
||||
Path: "sh",
|
||||
Env: []string{"TARGET=StatefulSet"},
|
||||
Args: []string{"-c", `sed "s/Deployment/$TARGET/g"`},
|
||||
WorkingDir: wd,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user