You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
err=proxy.ExcludeIP(cc.KubernetesConfig.NodeIP) // to be used for http get calls
63
-
iferr!=nil {
64
-
glog.Errorf("Error excluding IP from proxy: %s", err)
65
-
}
66
62
67
-
kubectl, err:=exec.LookPath("kubectl")
68
-
iferr!=nil {
69
-
exit.WithCode(exit.NoInput, "kubectl not found in PATH, but is required for the dashboard. Installation guide: https://kubernetes.io/docs/tasks/tools/install-kubectl/")
70
-
}
71
63
api, err:=machine.NewAPIClient()
72
64
deferfunc() {
73
65
err:=api.Close()
@@ -79,6 +71,27 @@ var dashboardCmd = &cobra.Command{
console.OutStyle(console.Meh, "%q cluster does not exist", pkg_config.GetMachineName())
79
+
os.Exit(exit.Unavailable)
80
+
default:
81
+
exit.WithError("Error getting cluster", err)
82
+
}
83
+
}
84
+
85
+
err=proxy.ExcludeIP(cc.KubernetesConfig.NodeIP) // to be used for http get calls
86
+
iferr!=nil {
87
+
glog.Errorf("Error excluding IP from proxy: %s", err)
88
+
}
89
+
90
+
kubectl, err:=exec.LookPath("kubectl")
91
+
iferr!=nil {
92
+
exit.WithCode(exit.NoInput, "kubectl not found in PATH, but is required for the dashboard. Installation guide: https://kubernetes.io/docs/tasks/tools/install-kubectl/")
93
+
}
94
+
82
95
cluster.EnsureMinikubeRunningOrExit(api, 1)
83
96
84
97
// Send status messages to stderr for folks re-using this output.
@@ -127,9 +140,9 @@ var dashboardCmd = &cobra.Command{
0 commit comments