Skip to content

Commit

Permalink
Make sure minikube status shows status name and details
Browse files Browse the repository at this point in the history
  • Loading branch information
Priya Wadhwa committed Aug 19, 2020
1 parent 3dba974 commit 1783cc2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/minikube/cmd/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,15 @@ func readEventLog(name string) ([]cloudevents.Event, time.Time, error) {

// clusterState converts Status structs into a ClusterState struct
func clusterState(sts []*Status) ClusterState {
sc := statusCode(sts[0].Host)
cs := ClusterState{
BinaryVersion: version.GetVersion(),

BaseState: BaseState{
Name: ClusterFlagValue(),
StatusCode: statusCode(sts[0].APIServer),
Name: ClusterFlagValue(),
StatusCode: sc,
StatusName: sts[0].Host,
StatusDetail: codeDetails[sc],
},

Components: map[string]BaseState{
Expand Down

0 comments on commit 1783cc2

Please sign in to comment.