Rename localkube status to cluster status

pull/1842/head
Matt Rickard 2017-08-18 11:55:28 -07:00
parent 1d715bfbd0
commit f19fab24b4
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ var statusFormat string
type Status struct {
MinikubeStatus string
LocalkubeStatus string
ClusterStatus string
KubeconfigStatus string
}
@ -59,10 +59,10 @@ var statusCmd = &cobra.Command{
cmdUtil.MaybeReportErrorAndExit(err)
}
ls := state.None.String()
cs := state.None.String()
ks := state.None.String()
if ms == state.Running.String() {
ls, err = cluster.GetLocalkubeStatus(api)
cs, err = cluster.GetLocalkubeStatus(api)
if err != nil {
glog.Errorln("Error localkube status:", err)
cmdUtil.MaybeReportErrorAndExit(err)
@ -85,7 +85,7 @@ var statusCmd = &cobra.Command{
}
}
status := Status{ms, ls, ks}
status := Status{ms, cs, ks}
tmpl, err := template.New("status").Parse(statusFormat)
if err != nil {

View File

@ -90,7 +90,7 @@ const (
MinimumDiskSizeMB = 2000
DefaultVMDriver = "virtualbox"
DefaultStatusFormat = "minikube: {{.MinikubeStatus}}\n" +
"localkube: {{.LocalkubeStatus}}\n" + "kubectl: {{.KubeconfigStatus}}\n"
"cluster: {{.ClusterStatus}}\n" + "kubectl: {{.KubeconfigStatus}}\n"
DefaultAddonListFormat = "- {{.AddonName}}: {{.AddonStatus}}\n"
DefaultConfigViewFormat = "- {{.ConfigKey}}: {{.ConfigValue}}\n"
GithubMinikubeReleasesURL = "https://storage.googleapis.com/minikube/releases.json"