mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
expose --as-current-user via GetRunFnRunner
This commit is contained in:
@@ -72,7 +72,7 @@ func GetRunFnRunner(name string) *RunFnRunner {
|
|||||||
&r.Env, "env", "e", []string{},
|
&r.Env, "env", "e", []string{},
|
||||||
"a list of environment variables to be used by functions")
|
"a list of environment variables to be used by functions")
|
||||||
r.Command.Flags().BoolVar(
|
r.Command.Flags().BoolVar(
|
||||||
&r.AsCurrentUser, "as-current-user", false, "use the uid and gid that kpt is running with to run the function in the container")
|
&r.AsCurrentUser, "as-current-user", false, "use the uid and gid of the command executor to run the function in the container")
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user