Skip to content

Commit 5d57858

Browse files
mdboothk8s-infra-cherrypick-robot
authored andcommitted
Fix panic executing manager without valid kube context
1 parent 5274e64 commit 5d57858

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ func main() {
233233
cfg, err := config.GetConfigWithContext(os.Getenv("KUBECONTEXT"))
234234
if err != nil {
235235
setupLog.Error(err, "unable to get kubeconfig")
236+
os.Exit(1)
236237
}
237238
cfg.QPS = restConfigQPS
238239
cfg.Burst = restConfigBurst

0 commit comments

Comments
 (0)