From 568cee9e5a28933dc75e8badcf1a71304b7fad71 Mon Sep 17 00:00:00 2001 From: Matthew Booth Date: Fri, 3 May 2024 18:41:01 +0100 Subject: [PATCH] Fix panic executing manager without valid kube context --- main.go | 1 + 1 file changed, 1 insertion(+) 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