err=proxy.ExcludeIP(cc.KubernetesConfig.NodeIP)// to be used for http get calls
iferr!=nil{
glog.Errorf("Error excluding IP from proxy: %s",err)
}
kubectl,err:=exec.LookPath("kubectl")
iferr!=nil{
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/")
}
api,err:=machine.NewAPIClient()
deferfunc(){
err:=api.Close()
...
...
@@ -79,6 +71,27 @@ var dashboardCmd = &cobra.Command{
console.OutStyle(console.Meh,"%q cluster does not exist",pkg_config.GetMachineName())
os.Exit(exit.Unavailable)
default:
exit.WithError("Error getting cluster",err)
}
}
err=proxy.ExcludeIP(cc.KubernetesConfig.NodeIP)// to be used for http get calls
iferr!=nil{
glog.Errorf("Error excluding IP from proxy: %s",err)
}
kubectl,err:=exec.LookPath("kubectl")
iferr!=nil{
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/")
}
cluster.EnsureMinikubeRunningOrExit(api,1)
// Send status messages to stderr for folks re-using this output.
...
...
@@ -127,9 +140,9 @@ var dashboardCmd = &cobra.Command{