Merge pull request #78775 from johscheuer/fix-kube-proxy-cleanup-error

Check if options returning an error
This commit is contained in:
Kubernetes Prow Robot 2019-08-14 07:26:26 -07:00 committed by GitHub
commit a7c81c663d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -435,7 +435,10 @@ with the apiserver API to configure the proxy.`,
if err := opts.Validate(args); err != nil {
klog.Fatalf("failed validate: %v", err)
}
klog.Fatal(opts.Run())
if err := opts.Run(); err != nil {
klog.Exit(err)
}
},
}