Rename localkube status to cluster status
parent
1d715bfbd0
commit
f19fab24b4
|
@ -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 {
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue