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

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)
}
},
}