Adds explanations for minikube error codes

pull/11773/head
Dakshraj Sharma 2021-06-26 13:24:19 +05:30
parent 4d078ae82f
commit d8adc48463
4 changed files with 265 additions and 122 deletions

View File

@ -90,7 +90,7 @@ func Execute() {
}
}
if !found {
exit.Message(reason.WrongBinaryWSL, "You are trying to run windows .exe binary inside WSL, for better integration please use Linux binary instead (Download at https://minikube.sigs.k8s.io/docs/start/.). Otherwise if you still want to do this, you can do it using --force")
exit.Message(reason.WrongBinaryWSL, "You are trying to run a windows .exe binary inside WSL. For better integration please use a Linux binary instead (Download at https://minikube.sigs.k8s.io/docs/start/.). Otherwise if you still want to do this, you can do it using --force")
}
}

View File

@ -1513,5 +1513,5 @@ func exitGuestProvision(err error) {
if errors.Cause(err) == oci.ErrGetSSHPortContainerNotRunning {
exit.Message(reason.GuestProvisionContainerExited, "Docker container exited prematurely after it was created, consider investigating Docker's performance/health.")
}
exit.Error(reason.GuestProvision, "error provisioning host", err)
exit.Error(reason.GuestProvision, "error provisioning guest", err)
}

View File

@ -64,7 +64,7 @@ func init() {
stopCmd.Flags().StringVarP(&outputFormat, "output", "o", "text", "Format to print stdout in. Options include: [text,json]")
if err := viper.GetViper().BindPFlags(stopCmd.Flags()); err != nil {
exit.Error(reason.InternalFlagsBind, "unable to bind flags", err)
exit.Error(reason.InternalBindFlags, "unable to bind flags", err)
}
}

View File

@ -64,54 +64,98 @@ var (
`,
Style: style.Caching,
}
// minikube was interrupted by an OS signal
Interrupted = Kind{ID: "MK_INTERRUPTED", ExitCode: ExProgramConflict}
// user attempted to run a Windows executable (.exe) inside of WSL rather than using the Linux binary
WrongBinaryWSL = Kind{ID: "MK_WRONG_BINARY_WSL", ExitCode: ExProgramUnsupported}
WrongBinaryM1 = Kind{ID: "MK_WRONG_BINARY_M1", ExitCode: ExProgramUnsupported}
// user attempted to run an amd64 executable on a darwin/arm64 system
WrongBinaryM1 = Kind{ID: "MK_WRONG_BINARY_M1", ExitCode: ExProgramUnsupported}
NewAPIClient = Kind{ID: "MK_NEW_APICLIENT", ExitCode: ExProgramError}
InternalAddonEnable = Kind{ID: "MK_ADDON_ENABLE", ExitCode: ExProgramError}
InternalAddConfig = Kind{ID: "MK_ADD_CONFIG", ExitCode: ExProgramError}
InternalBindFlags = Kind{ID: "MK_BIND_FLAGS", ExitCode: ExProgramError}
InternalBootstrapper = Kind{ID: "MK_BOOTSTRAPPER", ExitCode: ExProgramError}
InternalCacheList = Kind{ID: "MK_CACHE_LIST", ExitCode: ExProgramError}
InternalCacheLoad = Kind{ID: "MK_CACHE_LOAD", ExitCode: ExProgramError}
InternalCommandRunner = Kind{ID: "MK_COMMAND_RUNNER", ExitCode: ExProgramError}
InternalCompletion = Kind{ID: "MK_COMPLETION", ExitCode: ExProgramError}
InternalConfigSet = Kind{ID: "MK_CONFIG_SET", ExitCode: ExProgramError}
InternalConfigUnset = Kind{ID: "MK_CONFIG_UNSET", ExitCode: ExProgramError}
InternalConfigView = Kind{ID: "MK_CONFIG_VIEW", ExitCode: ExProgramError}
InternalDelConfig = Kind{ID: "MK_DEL_CONFIG", ExitCode: ExProgramError}
InternalDisable = Kind{ID: "MK_DISABLE", ExitCode: ExProgramError}
InternalDockerScript = Kind{ID: "MK_DOCKER_SCRIPT", ExitCode: ExProgramError}
InternalEnable = Kind{ID: "MK_ENABLE", ExitCode: ExProgramError}
InternalFlagsBind = Kind{ID: "MK_FLAGS_BIND", ExitCode: ExProgramError}
InternalFlagSet = Kind{ID: "MK_FLAGS_SET", ExitCode: ExProgramError}
InternalFormatUsage = Kind{ID: "MK_FORMAT_USAGE", ExitCode: ExProgramError}
InternalGenerateDocs = Kind{ID: "MK_GENERATE_DOCS", ExitCode: ExProgramError}
InternalJSONMarshal = Kind{ID: "MK_JSON_MARSHAL", ExitCode: ExProgramError}
// minikube failed to create a new Docker Machine api client
NewAPIClient = Kind{ID: "MK_NEW_APICLIENT", ExitCode: ExProgramError}
// minikube could not enable an addon, e.g dashboard addon
InternalAddonEnable = Kind{ID: "MK_ADDON_ENABLE", ExitCode: ExProgramError}
// minikube failed to update internal configuration, such as the cached images config map
InternalAddConfig = Kind{ID: "MK_ADD_CONFIG", ExitCode: ExProgramError}
// minikube failed to create a cluster bootstrapper
InternalBootstrapper = Kind{ID: "MK_BOOTSTRAPPER", ExitCode: ExProgramError}
// minikube failed to list cached images
InternalCacheList = Kind{ID: "MK_CACHE_LIST", ExitCode: ExProgramError}
// minkube failed to cache and load cached images
InternalCacheLoad = Kind{ID: "MK_CACHE_LOAD", ExitCode: ExProgramError}
// minikube failed to load a Docker Machine CommandRunner
InternalCommandRunner = Kind{ID: "MK_COMMAND_RUNNER", ExitCode: ExProgramError}
// minikube failed to generate shell command completion for a supported shell
InternalCompletion = Kind{ID: "MK_COMPLETION", ExitCode: ExProgramError}
// minikube failed to set an internal config value
InternalConfigSet = Kind{ID: "MK_CONFIG_SET", ExitCode: ExProgramError}
// minikube failed to unset an internal config value
InternalConfigUnset = Kind{ID: "MK_CONFIG_UNSET", ExitCode: ExProgramError}
// minikube failed to view current config values
InternalConfigView = Kind{ID: "MK_CONFIG_VIEW", ExitCode: ExProgramError}
// minikybe failed to delete an internal configuration, such as a cached image
InternalDelConfig = Kind{ID: "MK_DEL_CONFIG", ExitCode: ExProgramError}
// minikube failed to disable a minikube addon
InternalDisable = Kind{ID: "MK_DISABLE", ExitCode: ExProgramError}
// minikube failed to generate script to activate minikube docker-env
InternalDockerScript = Kind{ID: "MK_DOCKER_SCRIPT", ExitCode: ExProgramError}
// minkube failed to enable a minikube addon
InternalEnable = Kind{ID: "MK_ENABLE", ExitCode: ExProgramError}
// an error occurred when viper attempted to bind flags to configuration
InternalBindFlags = Kind{ID: "MK_BIND_FLAGS", ExitCode: ExProgramError}
// an error occurred when setting cofniguration flags (currently not in use)
InternalFlagSet = Kind{ID: "MK_FLAGS_SET", ExitCode: ExProgramError}
// minkube was passed an invalid format string in the --format flag
InternalFormatUsage = Kind{ID: "MK_FORMAT_USAGE", ExitCode: ExProgramError}
// minikube failed to auto-generate markdown-based documentation in the specified folder
InternalGenerateDocs = Kind{ID: "MK_GENERATE_DOCS", ExitCode: ExProgramError}
// minikube failed to marshal a JSON object
InternalJSONMarshal = Kind{ID: "MK_JSON_MARSHAL", ExitCode: ExProgramError}
// minikube failed to create a Kubernetes client set which is necessary for querying the Kubernetes API
InternalKubernetesClient = Kind{ID: "MK_K8S_CLIENT", ExitCode: ExControlPlaneUnavailable}
InternalListConfig = Kind{ID: "MK_LIST_CONFIG", ExitCode: ExProgramError}
InternalLogtostderrFlag = Kind{ID: "MK_LOGTOSTDERR_FLAG", ExitCode: ExProgramError}
InternalLogFollow = Kind{ID: "MK_LOG_FOLLOW", ExitCode: ExProgramError}
InternalNewRuntime = Kind{ID: "MK_NEW_RUNTIME", ExitCode: ExProgramError}
InternalOutputUsage = Kind{ID: "MK_OUTPUT_USAGE", ExitCode: ExProgramError}
InternalRuntime = Kind{ID: "MK_RUNTIME", ExitCode: ExProgramError}
InternalReservedProfile = Kind{ID: "MK_RESERVED_PROFILE", ExitCode: ExProgramConflict}
InternalEnvScript = Kind{ID: "MK_ENV_SCRIPT", ExitCode: ExProgramError}
InternalShellDetect = Kind{ID: "MK_SHELL_DETECT", ExitCode: ExProgramError}
InternalStatusJSON = Kind{ID: "MK_STATUS_JSON", ExitCode: ExProgramError}
InternalStatusText = Kind{ID: "MK_STATUS_TEXT", ExitCode: ExProgramError}
InternalUnsetScript = Kind{ID: "MK_UNSET_SCRIPT", ExitCode: ExProgramError}
InternalViewExec = Kind{ID: "MK_VIEW_EXEC", ExitCode: ExProgramError}
InternalViewTmpl = Kind{ID: "MK_VIEW_TMPL", ExitCode: ExProgramError}
InternalYamlMarshal = Kind{ID: "MK_YAML_MARSHAL", ExitCode: ExProgramError}
InternalCredsNotFound = Kind{ID: "MK_CREDENTIALS_NOT_FOUND", ExitCode: ExProgramNotFound, Style: style.Shrug}
InternalCredsNotNeeded = Kind{ID: "MK_CREDENTIALS_NOT_NEEDED", ExitCode: ExProgramNotFound, Style: style.Shrug}
InternalSemverParse = Kind{ID: "MK_SEMVER_PARSE", ExitCode: ExProgramError}
DaemonizeError = Kind{ID: "MK_DAEMONIZE", ExitCode: ExProgramError}
// minikube failed to list some configuration data
InternalListConfig = Kind{ID: "MK_LIST_CONFIG", ExitCode: ExProgramError}
// minikube failed to write logs to stdout (currently not in use)
InternalLogtostderrFlag = Kind{ID: "MK_LOGTOSTDERR_FLAG", ExitCode: ExProgramError}
// minikube failed to follow or watch minikube logs
InternalLogFollow = Kind{ID: "MK_LOG_FOLLOW", ExitCode: ExProgramError}
// minikube failed to create an appropriate new runtime based on the driver in use
InternalNewRuntime = Kind{ID: "MK_NEW_RUNTIME", ExitCode: ExProgramError}
// minikube was passed an invalid value for the --output command line flag
InternalOutputUsage = Kind{ID: "MK_OUTPUT_USAGE", ExitCode: ExProgramError}
// minikube could not configure the runtime in use, or the runtime failed
InternalRuntime = Kind{ID: "MK_RUNTIME", ExitCode: ExProgramError}
// minikube was passed a reserved keyword as a profile name, which is not allowed
InternalReservedProfile = Kind{ID: "MK_RESERVED_PROFILE", ExitCode: ExProgramConflict}
// minkube failed to generate script to set or unset minikube-env
InternalEnvScript = Kind{ID: "MK_ENV_SCRIPT", ExitCode: ExProgramError}
// minikube failed to detect the shell in use
InternalShellDetect = Kind{ID: "MK_SHELL_DETECT", ExitCode: ExProgramError}
// minikube failed to output JSON-formatted minikube status
InternalStatusJSON = Kind{ID: "MK_STATUS_JSON", ExitCode: ExProgramError}
// minikube failed to output minikube status text
InternalStatusText = Kind{ID: "MK_STATUS_TEXT", ExitCode: ExProgramError}
// minikube failed to generate script to deactivate minikube docker-env
InternalUnsetScript = Kind{ID: "MK_UNSET_SCRIPT", ExitCode: ExProgramError}
// minikube failed to execute (i.e. fill in values for) a view template for displaying current config
InternalViewExec = Kind{ID: "MK_VIEW_EXEC", ExitCode: ExProgramError}
// minikube failed to create view template for displaying current config
InternalViewTmpl = Kind{ID: "MK_VIEW_TMPL", ExitCode: ExProgramError}
// minikube failed to marshal a YAML object
InternalYamlMarshal = Kind{ID: "MK_YAML_MARSHAL", ExitCode: ExProgramError}
// minikube could not locate credentials needed to utilize an appropriate service, e.g. GCP
InternalCredsNotFound = Kind{ID: "MK_CREDENTIALS_NOT_FOUND", ExitCode: ExProgramNotFound, Style: style.Shrug}
// minikube was passed service credentials when they were not needed, such as when using the GCP Auth addon when running in GCE
InternalCredsNotNeeded = Kind{ID: "MK_CREDENTIALS_NOT_NEEDED", ExitCode: ExProgramNotFound, Style: style.Shrug}
// minikube found an invalid semver string for kubernetes in the minikube constants
InternalSemverParse = Kind{ID: "MK_SEMVER_PARSE", ExitCode: ExProgramError}
// minikube was unable to daemonize the minikube process
DaemonizeError = Kind{ID: "MK_DAEMONIZE", ExitCode: ExProgramError}
RsrcInsufficientCores = Kind{ID: "RSRC_INSUFFICIENT_CORES", ExitCode: ExInsufficientCores, Style: style.UnmetRequirement}
// insufficient cores available for use by minikube and kubernetes
RsrcInsufficientCores = Kind{ID: "RSRC_INSUFFICIENT_CORES", ExitCode: ExInsufficientCores, Style: style.UnmetRequirement}
// insufficient cores available for use by Docker Desktop on Mac
RsrcInsufficientDarwinDockerCores = Kind{
ID: "RSRC_DOCKER_CORES",
ExitCode: ExInsufficientCores,
@ -124,6 +168,7 @@ var (
URL: "https://docs.docker.com/docker-for-mac/#resources",
}
// insufficient cores available for use by Docker Desktop on Windows
RsrcInsufficientWindowsDockerCores = Kind{
ID: "RSRC_DOCKER_CORES",
ExitCode: ExInsufficientCores,
@ -136,9 +181,13 @@ var (
Style: style.UnmetRequirement,
}
RsrcInsufficientReqMemory = Kind{ID: "RSRC_INSUFFICIENT_REQ_MEMORY", ExitCode: ExInsufficientMemory, Style: style.UnmetRequirement}
RsrcInsufficientSysMemory = Kind{ID: "RSRC_INSUFFICIENT_SYS_MEMORY", ExitCode: ExInsufficientMemory, Style: style.UnmetRequirement}
RsrcInsufficientContainerMemory = Kind{ID: "RSRC_INSUFFICIENT_CONTAINER_MEMORY", ExitCode: ExInsufficientMemory, Style: style.UnmetRequirement}
// insufficient memory (less than the recommended minimum) allocated to minikube
RsrcInsufficientReqMemory = Kind{ID: "RSRC_INSUFFICIENT_REQ_MEMORY", ExitCode: ExInsufficientMemory, Style: style.UnmetRequirement}
// insufficient memory (less than the recommended minimum) available on the system running minikube
RsrcInsufficientSysMemory = Kind{ID: "RSRC_INSUFFICIENT_SYS_MEMORY", ExitCode: ExInsufficientMemory, Style: style.UnmetRequirement}
// insufficient memory available for the driver in use by minikube
RsrcInsufficientContainerMemory = Kind{ID: "RSRC_INSUFFICIENT_CONTAINER_MEMORY", ExitCode: ExInsufficientMemory, Style: style.UnmetRequirement}
// insufficient memory available to Docker Desktop on Windows
RsrcInsufficientWindowsDockerMemory = Kind{
ID: "RSRC_DOCKER_MEMORY",
ExitCode: ExInsufficientMemory,
@ -150,6 +199,7 @@ var (
URL: "https://docs.docker.com/docker-for-windows/#resources",
Style: style.UnmetRequirement,
}
// insufficient memory available to Docker Desktop on Mac
RsrcInsufficientDarwinDockerMemory = Kind{
ID: "RSRC_DOCKER_MEMORY",
ExitCode: ExInsufficientMemory,
@ -162,6 +212,7 @@ var (
URL: "https://docs.docker.com/docker-for-mac/#resources",
}
// insufficient disk storage available to the docker driver
RsrcInsufficientDockerStorage = Kind{
ID: "RSRC_DOCKER_STORAGE",
ExitCode: ExInsufficientStorage,
@ -173,6 +224,7 @@ var (
3. Run "minikube ssh -- docker system prune" if using the Docker container runtime`,
Issues: []int{9024},
}
// insufficient disk storage available to the podman driver
RsrcInsufficientPodmanStorage = Kind{
ID: "RSRC_PODMAN_STORAGE",
ExitCode: ExInsufficientStorage,
@ -183,12 +235,18 @@ var (
Issues: []int{9024},
}
// insufficient disk storage available for running minikube and kubernetes
RsrcInsufficientStorage = Kind{ID: "RSRC_INSUFFICIENT_STORAGE", ExitCode: ExInsufficientStorage, Style: style.UnmetRequirement}
HostHomeMkdir = Kind{ID: "HOST_HOME_MKDIR", ExitCode: ExHostPermission}
HostHomeChown = Kind{ID: "HOST_HOME_CHOWN", ExitCode: ExHostPermission}
HostBrowser = Kind{ID: "HOST_BROWSER", ExitCode: ExHostError}
HostConfigLoad = Kind{ID: "HOST_CONFIG_LOAD", ExitCode: ExHostConfig}
// minikube could not create the minikube directory
HostHomeMkdir = Kind{ID: "HOST_HOME_MKDIR", ExitCode: ExHostPermission}
// minikube could not change permissions for the minikube directory
HostHomeChown = Kind{ID: "HOST_HOME_CHOWN", ExitCode: ExHostPermission}
// minikube failed to open the host browser, such as when running minikube dashboard
HostBrowser = Kind{ID: "HOST_BROWSER", ExitCode: ExHostError}
// minikube failed to load cluster config from the host for the profile in use
HostConfigLoad = Kind{ID: "HOST_CONFIG_LOAD", ExitCode: ExHostConfig}
// the current user has insufficient permissions to create the minikube profile directory
HostHomePermission = Kind{
ID: "HOST_HOME_PERMISSION",
ExitCode: ExHostPermission,
@ -196,22 +254,37 @@ var (
Issues: []int{9165},
}
HostCurrentUser = Kind{ID: "HOST_CURRENT_USER", ExitCode: ExHostConfig}
HostDelCache = Kind{ID: "HOST_DEL_CACHE", ExitCode: ExHostError}
HostKillMountProc = Kind{ID: "HOST_KILL_MOUNT_PROC", ExitCode: ExHostError}
HostKubeconfigUnset = Kind{ID: "HOST_KUBECNOFIG_UNSET", ExitCode: ExHostConfig}
HostKubeconfigUpdate = Kind{ID: "HOST_KUBECONFIG_UPDATE", ExitCode: ExHostConfig}
// minikube failed to determine current user
HostCurrentUser = Kind{ID: "HOST_CURRENT_USER", ExitCode: ExHostConfig}
// minikube failed to delete cached images from host
HostDelCache = Kind{ID: "HOST_DEL_CACHE", ExitCode: ExHostError}
// minikube failed to kill a mount process
HostKillMountProc = Kind{ID: "HOST_KILL_MOUNT_PROC", ExitCode: ExHostError}
// minikube failed to unset host Kubernetes resources config
HostKubeconfigUnset = Kind{ID: "HOST_KUBECNOFIG_UNSET", ExitCode: ExHostConfig}
// minikube failed to update host Kubernetes resources config
HostKubeconfigUpdate = Kind{ID: "HOST_KUBECONFIG_UPDATE", ExitCode: ExHostConfig}
// minikube failed to delete Kubernetes config from context for a given profile
HostKubeconfigDeleteCtx = Kind{ID: "HOST_KUBECONFIG_DELETE_CTX", ExitCode: ExHostConfig}
HostKubectlProxy = Kind{ID: "HOST_KUBECTL_PROXY", ExitCode: ExHostError}
HostMountPid = Kind{ID: "HOST_MOUNT_PID", ExitCode: ExHostError}
HostPathMissing = Kind{ID: "HOST_PATH_MISSING", ExitCode: ExHostNotFound}
HostPathStat = Kind{ID: "HOST_PATH_STAT", ExitCode: ExHostError}
HostPurge = Kind{ID: "HOST_PURGE", ExitCode: ExHostError}
HostSaveProfile = Kind{ID: "HOST_SAVE_PROFILE", ExitCode: ExHostConfig}
// minikube failed to launch a kubectl proxy
HostKubectlProxy = Kind{ID: "HOST_KUBECTL_PROXY", ExitCode: ExHostError}
// minikube failed to write mount pid
HostMountPid = Kind{ID: "HOST_MOUNT_PID", ExitCode: ExHostError}
// minikube was passed a path to a host directory that does not exist
HostPathMissing = Kind{ID: "HOST_PATH_MISSING", ExitCode: ExHostNotFound}
// minikube failed to access info for a directory path
HostPathStat = Kind{ID: "HOST_PATH_STAT", ExitCode: ExHostError}
// minikube failed to purge minikube config directories
HostPurge = Kind{ID: "HOST_PURGE", ExitCode: ExHostError}
// minikube failed to persist profile config
HostSaveProfile = Kind{ID: "HOST_SAVE_PROFILE", ExitCode: ExHostConfig}
ProviderNotFound = Kind{ID: "PROVIDER_NOT_FOUND", ExitCode: ExProviderNotFound}
// minikube could not find a provider for the selected driver
ProviderNotFound = Kind{ID: "PROVIDER_NOT_FOUND", ExitCode: ExProviderNotFound}
// the host does not support or is improperly configured to support a provider for the selected driver
ProviderUnavailable = Kind{ID: "PROVIDER_UNAVAILABLE", ExitCode: ExProviderNotFound, Style: style.Shrug}
// minikube failed to access the driver control plane or API endpoint
DrvCPEndpoint = Kind{ID: "DRV_CP_ENDPOINT",
Advice: `Recreate the cluster by running:
minikube delete {{.profileArg}}
@ -219,84 +292,154 @@ var (
ExitCode: ExDriverError,
Style: style.Failure,
}
DrvPortForward = Kind{ID: "DRV_PORT_FORWARD", ExitCode: ExDriverError}
DrvUnsupportedMulti = Kind{ID: "DRV_UNSUPPORTED_MULTINODE", ExitCode: ExDriverConflict}
DrvUnsupportedOS = Kind{ID: "DRV_UNSUPPORTED_OS", ExitCode: ExDriverUnsupported}
// minikube failed to bind container ports to host ports
DrvPortForward = Kind{ID: "DRV_PORT_FORWARD", ExitCode: ExDriverError}
// the driver in use does not support multi-node clusters
DrvUnsupportedMulti = Kind{ID: "DRV_UNSUPPORTED_MULTINODE", ExitCode: ExDriverConflict}
// the specified driver is not supported on the host OS
DrvUnsupportedOS = Kind{ID: "DRV_UNSUPPORTED_OS", ExitCode: ExDriverUnsupported}
// the driver in use does not support the selected profile or multiple profiles
DrvUnsupportedProfile = Kind{ID: "DRV_UNSUPPORTED_PROFILE", ExitCode: ExDriverUnsupported}
DrvNotFound = Kind{ID: "DRV_NOT_FOUND", ExitCode: ExDriverNotFound}
DrvNotDetected = Kind{ID: "DRV_NOT_DETECTED", ExitCode: ExDriverNotFound}
DrvNotHealthy = Kind{ID: "DRV_NOT_HEALTHY", ExitCode: ExDriverNotFound}
DrvDockerNotRunning = Kind{ID: "DRV_DOCKER_NOT_RUNNING", ExitCode: ExDriverNotFound}
DrvAsRoot = Kind{ID: "DRV_AS_ROOT", ExitCode: ExDriverPermission}
DrvNeedsRoot = Kind{ID: "DRV_NEEDS_ROOT", ExitCode: ExDriverPermission}
// minikube failed to locate specified driver
DrvNotFound = Kind{ID: "DRV_NOT_FOUND", ExitCode: ExDriverNotFound}
// minikube could not find a valid driver
DrvNotDetected = Kind{ID: "DRV_NOT_DETECTED", ExitCode: ExDriverNotFound}
// minikube found drivers but none were ready to use
DrvNotHealthy = Kind{ID: "DRV_NOT_HEALTHY", ExitCode: ExDriverNotFound}
// minikube found the docker driver but the docker service was not running
DrvDockerNotRunning = Kind{ID: "DRV_DOCKER_NOT_RUNNING", ExitCode: ExDriverNotFound}
// the driver in use is being run as root
DrvAsRoot = Kind{ID: "DRV_AS_ROOT", ExitCode: ExDriverPermission}
// the specified driver needs to be run as root
DrvNeedsRoot = Kind{ID: "DRV_NEEDS_ROOT", ExitCode: ExDriverPermission}
// the specified driver needs to be run as administrator
DrvNeedsAdministrator = Kind{ID: "DRV_NEEDS_ADMINISTRATOR", ExitCode: ExDriverPermission}
GuestCacheLoad = Kind{ID: "GUEST_CACHE_LOAD", ExitCode: ExGuestError}
GuestCert = Kind{ID: "GUEST_CERT", ExitCode: ExGuestError}
GuestCpConfig = Kind{ID: "GUEST_CP_CONFIG", ExitCode: ExGuestConfig}
GuestDeletion = Kind{ID: "GUEST_DELETION", ExitCode: ExGuestError}
GuestImageList = Kind{ID: "GUEST_IMAGE_LIST", ExitCode: ExGuestError}
GuestImageLoad = Kind{ID: "GUEST_IMAGE_LOAD", ExitCode: ExGuestError}
GuestImageRemove = Kind{ID: "GUEST_IMAGE_REMOVE", ExitCode: ExGuestError}
GuestImageBuild = Kind{ID: "GUEST_IMAGE_BUILD", ExitCode: ExGuestError}
GuestLoadHost = Kind{ID: "GUEST_LOAD_HOST", ExitCode: ExGuestError}
GuestMount = Kind{ID: "GUEST_MOUNT", ExitCode: ExGuestError}
GuestMountConflict = Kind{ID: "GUEST_MOUNT_CONFLICT", ExitCode: ExGuestConflict}
GuestNodeAdd = Kind{ID: "GUEST_NODE_ADD", ExitCode: ExGuestError}
GuestNodeDelete = Kind{ID: "GUEST_NODE_DELETE", ExitCode: ExGuestError}
GuestNodeProvision = Kind{ID: "GUEST_NODE_PROVISION", ExitCode: ExGuestError}
GuestNodeRetrieve = Kind{ID: "GUEST_NODE_RETRIEVE", ExitCode: ExGuestNotFound}
GuestNodeStart = Kind{ID: "GUEST_NODE_START", ExitCode: ExGuestError}
GuestPause = Kind{ID: "GUEST_PAUSE", ExitCode: ExGuestError}
GuestProfileDeletion = Kind{ID: "GUEST_PROFILE_DELETION", ExitCode: ExGuestError}
GuestProvision = Kind{ID: "GUEST_PROVISION", ExitCode: ExGuestError}
// minikube failed to load cached images
GuestCacheLoad = Kind{ID: "GUEST_CACHE_LOAD", ExitCode: ExGuestError}
// minikube failed to setup certificates
GuestCert = Kind{ID: "GUEST_CERT", ExitCode: ExGuestError}
// minikube failed to access the control plane
GuestCpConfig = Kind{ID: "GUEST_CP_CONFIG", ExitCode: ExGuestConfig}
// minikube failed to properly delete a resource, such as a profile
GuestDeletion = Kind{ID: "GUEST_DELETION", ExitCode: ExGuestError}
// minikube failed to list images on the machine
GuestImageList = Kind{ID: "GUEST_IMAGE_LIST", ExitCode: ExGuestError}
// minikube failed to pull or load an image
GuestImageLoad = Kind{ID: "GUEST_IMAGE_LOAD", ExitCode: ExGuestError}
// minikube failed to remove an image
GuestImageRemove = Kind{ID: "GUEST_IMAGE_REMOVE", ExitCode: ExGuestError}
// minikube failed to build an image
GuestImageBuild = Kind{ID: "GUEST_IMAGE_BUILD", ExitCode: ExGuestError}
// minikube failed to load host
GuestLoadHost = Kind{ID: "GUEST_LOAD_HOST", ExitCode: ExGuestError}
// minkube failed to create a mount
GuestMount = Kind{ID: "GUEST_MOUNT", ExitCode: ExGuestError}
// minkube failed to update a mount
GuestMountConflict = Kind{ID: "GUEST_MOUNT_CONFLICT", ExitCode: ExGuestConflict}
// minikube failed to add a node to the cluster
GuestNodeAdd = Kind{ID: "GUEST_NODE_ADD", ExitCode: ExGuestError}
// minikube failed to remove a node from the cluster
GuestNodeDelete = Kind{ID: "GUEST_NODE_DELETE", ExitCode: ExGuestError}
// minikube failed to provision a node
GuestNodeProvision = Kind{ID: "GUEST_NODE_PROVISION", ExitCode: ExGuestError}
// minikube failed to retrieve information for a cluster node
GuestNodeRetrieve = Kind{ID: "GUEST_NODE_RETRIEVE", ExitCode: ExGuestNotFound}
// minikube failed to startup a cluster node
GuestNodeStart = Kind{ID: "GUEST_NODE_START", ExitCode: ExGuestError}
// minikube failed to pause the cluster process
GuestPause = Kind{ID: "GUEST_PAUSE", ExitCode: ExGuestError}
// minikube failed to delete a machine profile directory
GuestProfileDeletion = Kind{ID: "GUEST_PROFILE_DELETION", ExitCode: ExGuestError}
// minikube failed while attempting to provision the guest
GuestProvision = Kind{ID: "GUEST_PROVISION", ExitCode: ExGuestError}
// docker container exited prematurely during provisioning
GuestProvisionContainerExited = Kind{ID: "GUEST_PROVISION_CONTAINER_EXITED", ExitCode: ExGuestError}
GuestStart = Kind{ID: "GUEST_START", ExitCode: ExGuestError}
GuestStatus = Kind{ID: "GUEST_STATUS", ExitCode: ExGuestError}
GuestStopTimeout = Kind{ID: "GUEST_STOP_TIMEOUT", ExitCode: ExGuestTimeout}
GuestUnpause = Kind{ID: "GUEST_UNPAUSE", ExitCode: ExGuestError}
GuestCheckPaused = Kind{ID: "GUEST_CHECK_PAUSED", ExitCode: ExGuestError}
GuestDrvMismatch = Kind{ID: "GUEST_DRIVER_MISMATCH", ExitCode: ExGuestConflict, Style: style.Conflict}
GuestMissingConntrack = Kind{ID: "GUEST_MISSING_CONNTRACK", ExitCode: ExGuestUnsupported}
// minikube failed to start a node with current driver
GuestStart = Kind{ID: "GUEST_START", ExitCode: ExGuestError}
// minikube failed to get docker machine status
GuestStatus = Kind{ID: "GUEST_STATUS", ExitCode: ExGuestError}
// stopping the cluster process timed out
GuestStopTimeout = Kind{ID: "GUEST_STOP_TIMEOUT", ExitCode: ExGuestTimeout}
// minikube failed to unpause the cluster process
GuestUnpause = Kind{ID: "GUEST_UNPAUSE", ExitCode: ExGuestError}
// minikube failed to check if Kubernetes containers are paused
GuestCheckPaused = Kind{ID: "GUEST_CHECK_PAUSED", ExitCode: ExGuestError}
// minikube cluster was created used a driver that is incompatible with the driver being requested
GuestDrvMismatch = Kind{ID: "GUEST_DRIVER_MISMATCH", ExitCode: ExGuestConflict, Style: style.Conflict}
// minikube could not find conntrack on the host, which is required from Kubernetes 1.18 onwards
GuestMissingConntrack = Kind{ID: "GUEST_MISSING_CONNTRACK", ExitCode: ExGuestUnsupported}
IfHostIP = Kind{ID: "IF_HOST_IP", ExitCode: ExLocalNetworkError}
IfMountIP = Kind{ID: "IF_MOUNT_IP", ExitCode: ExLocalNetworkError}
// minikube failed to get the host IP to use from within the VM
IfHostIP = Kind{ID: "IF_HOST_IP", ExitCode: ExLocalNetworkError}
// minikube failed to parse the input IP address for mount
IfMountIP = Kind{ID: "IF_MOUNT_IP", ExitCode: ExLocalNetworkError}
// minikube failed to parse or find port for mount
IfMountPort = Kind{ID: "IF_MOUNT_PORT", ExitCode: ExLocalNetworkError}
// minikube failed to access an ssh client on the host machine
IfSSHClient = Kind{ID: "IF_SSH_CLIENT", ExitCode: ExLocalNetworkError}
InetCacheBinaries = Kind{ID: "INET_CACHE_BINARIES", ExitCode: ExInternetError}
InetCacheKubectl = Kind{ID: "INET_CACHE_KUBECTL", ExitCode: ExInternetError}
InetCacheTar = Kind{ID: "INET_CACHE_TAR", ExitCode: ExInternetError}
InetGetVersions = Kind{ID: "INET_GET_VERSIONS", ExitCode: ExInternetError}
InetRepo = Kind{ID: "INET_REPO", ExitCode: ExInternetError}
InetReposUnavailable = Kind{ID: "INET_REPOS_UNAVAILABLE", ExitCode: ExInternetError}
// minikube failed to cache kubernetes binaries for the current runtime
InetCacheBinaries = Kind{ID: "INET_CACHE_BINARIES", ExitCode: ExInternetError}
// minikube failed to cache the kubectl binary
InetCacheKubectl = Kind{ID: "INET_CACHE_KUBECTL", ExitCode: ExInternetError}
// minikube failed to cache required images to tar files
InetCacheTar = Kind{ID: "INET_CACHE_TAR", ExitCode: ExInternetError}
// minikube failed to get required versions for binaries in use
InetGetVersions = Kind{ID: "INET_GET_VERSIONS", ExitCode: ExInternetError}
// minikube was unable to access main repository and mirrors for images
InetRepo = Kind{ID: "INET_REPO", ExitCode: ExInternetError}
// minikube was unable to access any known image repositories
InetReposUnavailable = Kind{ID: "INET_REPOS_UNAVAILABLE", ExitCode: ExInternetError}
// minikube was unable to fetch latest release/version info for minkikube
InetVersionUnavailable = Kind{ID: "INET_VERSION_UNAVAILABLE", ExitCode: ExInternetUnavailable}
InetVersionEmpty = Kind{ID: "INET_VERSION_EMPTY", ExitCode: ExInternetConfig}
// minikube received invalid empty data for latest release/version info from the server
InetVersionEmpty = Kind{ID: "INET_VERSION_EMPTY", ExitCode: ExInternetConfig}
RuntimeEnable = Kind{ID: "RUNTIME_ENABLE", ExitCode: ExRuntimeError}
RuntimeCache = Kind{ID: "RUNTIME_CACHE", ExitCode: ExRuntimeError}
// minikube failed to enable the current container runtime
RuntimeEnable = Kind{ID: "RUNTIME_ENABLE", ExitCode: ExRuntimeError}
// minikube failed to cache images for the current container runtime
RuntimeCache = Kind{ID: "RUNTIME_CACHE", ExitCode: ExRuntimeError}
// minikube failed to restart the current container runtime
RuntimeRestart = Kind{ID: "RUNTIME_RESTART", ExitCode: ExRuntimeError}
// service check timed out while starting minikube dashboard
SvcCheckTimeout = Kind{ID: "SVC_CHECK_TIMEOUT", ExitCode: ExSvcTimeout}
SvcTimeout = Kind{ID: "SVC_TIMEOUT", ExitCode: ExSvcTimeout}
SvcList = Kind{ID: "SVC_LIST", ExitCode: ExSvcError}
SvcTunnelStart = Kind{ID: "SVC_TUNNEL_START", ExitCode: ExSvcError}
SvcTunnelStop = Kind{ID: "SVC_TUNNEL_STOP", ExitCode: ExSvcError}
SvcURLTimeout = Kind{ID: "SVC_URL_TIMEOUT", ExitCode: ExSvcTimeout}
SvcNotFound = Kind{ID: "SVC_NOT_FOUND", ExitCode: ExSvcNotFound}
// minikube was unable to access a service
SvcTimeout = Kind{ID: "SVC_TIMEOUT", ExitCode: ExSvcTimeout}
// minikube failed to list services for the specified namespace
SvcList = Kind{ID: "SVC_LIST", ExitCode: ExSvcError}
// minikube failed to start a tunnel
SvcTunnelStart = Kind{ID: "SVC_TUNNEL_START", ExitCode: ExSvcError}
// minikube could not stop an active tunnel
SvcTunnelStop = Kind{ID: "SVC_TUNNEL_STOP", ExitCode: ExSvcError}
// minikube was unable to access the service url
SvcURLTimeout = Kind{ID: "SVC_URL_TIMEOUT", ExitCode: ExSvcTimeout}
// minikube couldn't find the specified service in the specified namespace
SvcNotFound = Kind{ID: "SVC_NOT_FOUND", ExitCode: ExSvcNotFound}
EnvDriverConflict = Kind{ID: "ENV_DRIVER_CONFLICT", ExitCode: ExDriverConflict}
EnvMultiConflict = Kind{ID: "ENV_MULTINODE_CONFLICT", ExitCode: ExGuestConflict}
// user attempted to use a command that is not supported by the driver currently in use
EnvDriverConflict = Kind{ID: "ENV_DRIVER_CONFLICT", ExitCode: ExDriverConflict}
// user attempted to run a command that is not supported on multi-node setup without some additional configuration
EnvMultiConflict = Kind{ID: "ENV_MULTINODE_CONFLICT", ExitCode: ExGuestConflict}
// the docker service was unavailable to the cluster
EnvDockerUnavailable = Kind{ID: "ENV_DOCKER_UNAVAILABLE", ExitCode: ExRuntimeUnavailable}
// the podman service was unavailable to the cluster
EnvPodmanUnavailable = Kind{ID: "ENV_PODMAN_UNAVAILABLE", ExitCode: ExRuntimeUnavailable}
// user attempted to use an addon that is not supported
AddonUnsupported = Kind{ID: "SVC_ADDON_UNSUPPORTED", ExitCode: ExSvcUnsupported}
AddonNotEnabled = Kind{ID: "SVC_ADDON_NOT_ENABLED", ExitCode: ExProgramConflict}
// user attempted to use an addon that is currently not enabled
AddonNotEnabled = Kind{ID: "SVC_ADDON_NOT_ENABLED", ExitCode: ExProgramConflict}
KubernetesInstallFailed = Kind{ID: "K8S_INSTALL_FAILED", ExitCode: ExControlPlaneError}
// minikube failed to update the Kubernetes cluster
KubernetesInstallFailed = Kind{ID: "K8S_INSTALL_FAILED", ExitCode: ExControlPlaneError}
// minikube failed to update the Kubernetes cluster because the container runtime was unavailable
KubernetesInstallFailedRuntimeNotRunning = Kind{ID: "K8S_INSTALL_FAILED_CONTAINER_RUNTIME_NOT_RUNNING", ExitCode: ExRuntimeNotRunning}
KubernetesTooOld = Kind{ID: "K8S_OLD_UNSUPPORTED", ExitCode: ExControlPlaneUnsupported}
KubernetesDowngrade = Kind{
// an outdated Kubernetes version was specified for minikube to use
KubernetesTooOld = Kind{ID: "K8S_OLD_UNSUPPORTED", ExitCode: ExControlPlaneUnsupported}
// minikube was unable to safely downgrade installed Kubernetes version
KubernetesDowngrade = Kind{
ID: "K8S_DOWNGRADE_UNSUPPORTED",
ExitCode: ExControlPlaneUnsupported,
Advice: `1) Recreate the cluster with Kubernetes {{.new}}, by running: