From 5c27bc4d11121549cb70e943029066e5b788025d Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Tue, 27 Sep 2022 10:17:41 -0700 Subject: [PATCH] update messaging if using user network --- cmd/minikube/cmd/start_flags.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd/minikube/cmd/start_flags.go b/cmd/minikube/cmd/start_flags.go index aeec3dc0c6..072c9d00d9 100644 --- a/cmd/minikube/cmd/start_flags.go +++ b/cmd/minikube/cmd/start_flags.go @@ -459,12 +459,15 @@ func getCNIConfig(cmd *cobra.Command) string { func getNetwork(driverName string) string { n := viper.GetString(network) - if n != "" { + if !driver.IsQEMU(driverName) { return n } - if driver.IsQEMU(driverName) { + if n == "" { out.WarningT("The default network for QEMU will change from 'user' to 'socket_vmnet' in a future release") - return "user" + n = "user" + } + if n == "user" { + out.WarningT("You are using the QEMU driver without a dedicated network, which doesn't support `minikube service` & `minikube tunnel` commands.\nTo try the experimental dedicated network see: https://minikube.sigs.k8s.io/docs/drivers/qemu/#networking") } return n }