Skip to content

Commit 63d44ac

Browse files
Merge pull request kubernetes#23677 from SinghAman21/fix/node-status-on-deleting
status: Fix Deleting codeNames mapping 103 → 120
2 parents effc271 + 6d30b92 commit 63d44ac

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

pkg/minikube/cluster/status.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import (
3838
"k8s.io/minikube/pkg/minikube/localpath"
3939
"k8s.io/minikube/pkg/minikube/machine"
4040
"k8s.io/minikube/pkg/minikube/out/register"
41+
"k8s.io/minikube/pkg/minikube/reason"
4142
"k8s.io/minikube/pkg/version"
4243
)
4344

@@ -86,33 +87,32 @@ const (
8687

8788
var (
8889
exitCodeToHTTPCode = map[int]int{
89-
// exit code 26 corresponds to insufficient storage
90-
26: 507,
90+
reason.ExInsufficientStorage: InsufficientStorage,
9191
}
9292

9393
codeNames = map[int]string{
94-
100: "Starting",
95-
101: "Pausing",
96-
102: "Unpausing",
97-
110: "Stopping",
98-
103: "Deleting",
94+
Starting: "Starting",
95+
Pausing: "Pausing",
96+
Unpausing: "Unpausing",
97+
Stopping: "Stopping",
98+
Deleting: "Deleting",
9999

100-
200: "OK",
101-
201: "HAppy",
102-
203: "Warning",
103-
204: "Degraded",
100+
OK: "OK",
101+
HAppy: "HAppy",
102+
Warning: "Warning",
103+
Degraded: "Degraded",
104104

105-
404: "NotFound",
106-
405: "Stopped",
107-
418: "Paused",
105+
NotFound: "NotFound",
106+
Stopped: "Stopped",
107+
Paused: "Paused",
108108

109-
500: "Error",
110-
507: "InsufficientStorage",
111-
520: "Unknown",
109+
Error: "Error",
110+
InsufficientStorage: "InsufficientStorage",
111+
Unknown: "Unknown",
112112
}
113113

114114
codeDetails = map[int]string{
115-
507: "/var is almost out of disk space",
115+
InsufficientStorage: "/var is almost out of disk space",
116116
}
117117
)
118118

0 commit comments

Comments
 (0)