Skip to content

Commit

Permalink
flag alias
Browse files Browse the repository at this point in the history
  • Loading branch information
EronWright committed Oct 12, 2024
1 parent 4f8b9a7 commit c6b5ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package cmd
import (
"os"

goflag "flag"
"flag"

"github.com/spf13/cobra"
"go.uber.org/zap"
Expand Down Expand Up @@ -83,7 +83,7 @@ func init() {
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Enable verbose logging")

// register the Kubernetes flags (e.g. for serve command when using Kubernetes RBAC for authorization)
fs := goflag.NewFlagSet("kubernetes", goflag.ExitOnError)
fs := flag.NewFlagSet("kubernetes", flag.ExitOnError)
config.RegisterFlags(fs)
rootCmd.PersistentFlags().AddGoFlagSet(fs)
rootCmd.PersistentFlags().StringVar(&kubeContext, "context", "", "Kubernetes context override")
Expand Down

0 comments on commit c6b5ca3

Please sign in to comment.