From db323268738cb1ac0e51ef4d8a6db03d27204c60 Mon Sep 17 00:00:00 2001 From: Thomas Stromberg Date: Tue, 10 Mar 2020 20:55:22 -0700 Subject: [PATCH] Improve kubectl mismatch representation --- cmd/minikube/cmd/start.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/minikube/cmd/start.go b/cmd/minikube/cmd/start.go index 758deb59a2..db0d7349d1 100644 --- a/cmd/minikube/cmd/start.go +++ b/cmd/minikube/cmd/start.go @@ -431,8 +431,11 @@ func showKubectlInfo(kcs *kubeconfig.Settings, k8sVersion string, machineName st glog.Infof("kubectl: %s, cluster: %s (minor skew: %d)", client, cluster, minorSkew) if client.Major != cluster.Major || minorSkew > 1 { - out.WarningT("{{.path}} is version {{.client_version}}, and is incompatible with Kubernetes {{.cluster_version}}. You will need to update {{.path}} or use 'minikube kubectl' to connect with this cluster", + out.Ln("") + out.T(out.Warning, "{{.path}} is v{{.client_version}}, which may be incompatible with Kubernetes v{{.cluster_version}}.", out.V{"path": path, "client_version": client, "cluster_version": cluster}) + out.T(out.Tip, "You can also use 'minikube kubectl -- ' to invoke a matching version", + out.V{"path": path, "client_version": client}) } return nil }