mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 10:00:56 +00:00
expose --as-current-user via AddFunctionBasicsFlags
This commit is contained in:
@@ -20,6 +20,9 @@ func AddFunctionBasicsFlags(set *pflag.FlagSet) {
|
|||||||
set.StringArrayVarP(
|
set.StringArrayVarP(
|
||||||
&theFlags.fnOptions.Env, "env", "e", []string{},
|
&theFlags.fnOptions.Env, "env", "e", []string{},
|
||||||
"a list of environment variables to be used by functions")
|
"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) {
|
func AddFunctionAlphaEnablementFlags(set *pflag.FlagSet) {
|
||||||
|
|||||||
Reference in New Issue
Block a user