INNER CODE UNIT · Go
main
secureCodeBox/secureCodeBox · auto-discovery/kubernetes/main.go:42
func main() {
var configFile string
flag.StringVar(&configFile, "config", "",
"The controller will load its initial configuration from this file. "+
"Omit this flag to use the default configuration values. "+
"Command-line flags override configuration from this file.")
opts := zap.Options{
Development: false,
}
opts.BindFlags(flag.CommandLine)
flag.Parse()
logger := zap.New(zap.UseFlagOptions(&opts))
ctrl.SetLogger(logger)
klog.SetLogger(logger)
ctrlConfig, err := util.LoadAutoDiscoveryConfig(configFile)
if err != nil {