From 6e91d719dd194b51c1e9fc162fc95ee440db26f0 Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Tue, 29 Sep 2020 19:38:12 -0400 Subject: [PATCH] Revert status code cmd --- cmd/minikube/cmd/status.go | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/cmd/minikube/cmd/status.go b/cmd/minikube/cmd/status.go index 6dfd417cd3..f57bc0e831 100644 --- a/cmd/minikube/cmd/status.go +++ b/cmd/minikube/cmd/status.go @@ -66,6 +66,8 @@ const ( // Irrelevant is used for statuses that aren't meaningful for worker nodes Irrelevant = "Irrelevant" + InsufficientStorage = reason.ExInsufficientStorage + // New status modes, based roughly on HTTP/SMTP standards // 1xx signifies a transitional state. If retried, it will soon return a 2xx, 4xx, or 5xx Starting = 100 @@ -84,18 +86,18 @@ const ( Paused = 418 // I'm a teapot! // 5xx signifies a server-side error (that may be retryable) - Error = 500 - InsufficientStorage = 507 - Unknown = 520 + Error = 500 + Unknown = 520 ) var ( codeNames = map[int]string{ - 100: "Starting", - 101: "Pausing", - 102: "Unpausing", - 110: "Stopping", - 103: "Deleting", + reason.ExInsufficientStorage: "InsufficientStorage", + 100: "Starting", + 101: "Pausing", + 102: "Unpausing", + 110: "Stopping", + 103: "Deleting", 200: "OK", 203: "Warning", @@ -105,12 +107,11 @@ var ( 418: "Paused", 500: "Error", - 507: "InsufficientStorage", 520: "Unknown", } codeDetails = map[int]string{ - 507: "/var is almost out of disk space", + reason.ExInsufficientStorage: "/var is almost out of disk space", } )