Merge pull request #12933 from klaases/go2

update suggestion messaging for --no-kubernetes
pull/12940/head
Medya Ghazizadeh 2021-11-12 12:21:14 -08:00 committed by GitHub
commit 8bd28a6599
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 2 deletions

View File

@ -432,13 +432,26 @@ func displayEnviron(env []string) {
}
}
func showKubectlInfo(kcs *kubeconfig.Settings, k8sVersion string, machineName string) error {
func showKubectlInfo(kcs *kubeconfig.Settings, k8sVersion, machineName string) error {
if k8sVersion == constants.NoKubernetesVersion {
register.Reg.SetStep(register.Done)
out.Step(style.Ready, "Done! minikube is ready without Kubernetes!")
out.BoxedWithConfig(box.Config{Py: 1, Px: 4, Type: "Round", Color: "Green"}, style.Tip, "Things to try without Kubernetes ...", `- "minikube ssh" to SSH into minikube's node.
// Runtime message.
boxConfig := box.Config{Py: 1, Px: 4, Type: "Round", Color: "Green"}
switch viper.GetString(containerRuntime) {
case constants.DefaultContainerRuntime:
out.BoxedWithConfig(boxConfig, style.Tip, "Things to try without Kubernetes ...", `- "minikube ssh" to SSH into minikube's node.
- "minikube docker-env" to point your docker-cli to the docker inside minikube.
- "minikube image" to build images without docker.`)
case constants.Containerd:
out.BoxedWithConfig(boxConfig, style.Tip, "Things to try without Kubernetes ...", `- "minikube ssh" to SSH into minikube's node.
- "minikube image" to build images without docker.`)
case constants.CRIO:
out.BoxedWithConfig(boxConfig, style.Tip, "Things to try without Kubernetes ...", `- "minikube ssh" to SSH into minikube's node.
- "minikube podman-env" to point your podman-cli to the podman inside minikube.
- "minikube image" to build images without docker.`)
}
return nil
}

View File

@ -56,6 +56,8 @@ const (
SSHPort = 22
// RegistryAddonPort os the default registry addon port
RegistryAddonPort = 5000
// Containerd is the default name and spelling for the containerd container runtime
Containerd = "containerd"
// CRIO is the default name and spelling for the cri-o container runtime
CRIO = "crio"
// DefaultContainerRuntime is our default container runtime