Skip to content

Commit f049a35

Browse files
authored
Merge pull request kubernetes-sigs#2061 from k8s-infra-cherrypick-robot/cherry-pick-2057-to-release-0.10
[release-0.10] 🐛 Fix panic executing manager without valid kube context
2 parents 5274e64 + 5d57858 commit f049a35

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)