mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-18 03:35:06 +00:00
expose --as-current-user via AddFunctionBasicsFlags
This commit is contained in:
@@ -20,6 +20,9 @@ func AddFunctionBasicsFlags(set *pflag.FlagSet) {
|
||||
set.StringArrayVarP(
|
||||
&theFlags.fnOptions.Env, "env", "e", []string{},
|
||||
"a list of environment variables to be used by functions")
|
||||
set.BoolVar(
|
||||
&theFlags.fnOptions.AsCurrentUser, "as-current-user", false,
|
||||
"use the uid and gid of the command executor to run the function in the container")
|
||||
}
|
||||
|
||||
func AddFunctionAlphaEnablementFlags(set *pflag.FlagSet) {
|
||||
|
||||
Reference in New Issue
Block a user