INNER CODE UNIT · Go
init
l7mp/stunner · cmd/stunnerctl/main.go:119
func init() {
rootCmd.PersistentFlags().BoolVarP(&all, "all-namespaces", "a", false, "Consider all namespaces")
rootCmd.PersistentFlags().StringVarP(&output, "output", "o", "summary", "Output format, either json, yaml, summary or jsonpath=template")
rootCmd.PersistentFlags().BoolVarP(&verbose, "verbose", "v", false, "Enable verbose logging, identical to -l all:DEBUG (overrides -l)")
rootCmd.PersistentFlags().StringVarP(&loglevel, "loglevel", "l", "all:WARN", "Set loglevel (format: <scope>:<level>, overrides: PION_LOG_*, default: all:WARN)")
// Kubernetes config flags: persistent, all commands
k8sConfigFlags = cliopt.NewConfigFlags(true)
k8sConfigFlags.AddFlags(rootCmd.PersistentFlags())
// CDS server discovery flags: for the "config" and "license" commands
cdsConfigFlags = discovery.NewCDSConfigFlags()
cdsConfigFlags.AddFlags(configCmd.Flags())
cdsConfigFlags.AddFlags(licenseCmd.Flags())
// watch flag: only for config
configCmd.Flags().BoolVarP(&watch, "watch", "w", false, "Watch for config updates from server")
configCmd.Flags().StringVar(&configRelayAddressNode, "node", "",