diff --git a/main.go b/main.go index a1fc86cd37..76329967b3 100644 --- a/main.go +++ b/main.go @@ -231,6 +231,7 @@ func main() { cfg, err := config.GetConfigWithContext(os.Getenv("KUBECONTEXT")) if err != nil { setupLog.Error(err, "unable to get kubeconfig") + os.Exit(1) } cfg.QPS = restConfigQPS cfg.Burst = restConfigBurst