diff --git a/main.go b/main.go index e4327aa7..1dca7dd8 100644 --- a/main.go +++ b/main.go @@ -109,7 +109,10 @@ func loadConfig() kubernetes.Interface { func main() { var wg sync.WaitGroup - flag.Set("logtostderr", "true") + err:=flag.Set("logtostderr", "true") + if err != nil { + panic(err.Error()) + } clientset := loadConfig() sharedInformers := informers.NewSharedInformerFactory(clientset, viper.GetDuration("resync-interval"))