Skip to content

Commit

Permalink
feat: assign imperisonation user via distinct package
Browse files Browse the repository at this point in the history
  • Loading branch information
logan-bobo committed Aug 20, 2024
1 parent 075f5a1 commit ac8adfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kuttlctl/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"github.com/spf13/cobra"

"github.com/kudobuilder/kuttl/pkg/version"
"github.com/kudobuilder/kuttl/pkg/impersonation"

)

// NewKuttlCmd creates a new root command for kuttlctl
Expand All @@ -30,6 +32,7 @@ and serves as an API aggregation layer.
Version: version.Get().GitVersion,
}

cmd.PersistentFlags().StringVar(&impersonation.ImpersonateAs, "as", "", "the username that you wish to impersonate")
cmd.AddCommand(newAssertCmd())
cmd.AddCommand(newErrorsCmd())
cmd.AddCommand(newTestCmd())
Expand Down

0 comments on commit ac8adfb

Please sign in to comment.