Allow a flag that forces kubelet to have a valid kubeconfig

--require-kubeconfig forces the kubelet to use the kubeconfig for all
APIserver communication, and exit cleanly.
This commit is contained in:
Clayton Coleman
2016-08-17 14:18:17 -04:00
parent 86c83ccd00
commit a66828d73e
4 changed files with 66 additions and 34 deletions

View File

@@ -44,7 +44,7 @@ func main() {
verflag.PrintAndExitIfRequested()
if err := app.Run(s, nil); err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
fmt.Fprintf(os.Stderr, "error: %v\n", err)
os.Exit(1)
}
}