Skip to content

Commit

Permalink
expose --as-current-user via AddFunctionBasicsFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
khrisrichardson committed Jun 15, 2021
1 parent 2e67433 commit c19a972
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kustomize/commands/build/flagsforfunctions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c19a972

Please sign in to comment.