You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
out.WarningT("The default network for QEMU will change from 'user' to 'socket_vmnet' in a future release")
466
+
switchn {
467
+
case"socket_vmnet":
468
+
ifruntime.GOOS!="darwin" {
469
+
exit.Message(reason.Usage, "The socket_vmnet network is only supported on macOS")
470
+
}
471
+
if!detect.SocketVMNetInstalled() {
472
+
exit.Message(reason.NotFoundSocketVMNet, "\n\n")
473
+
}
474
+
case"":
475
+
ifdetect.SocketVMNetInstalled() {
476
+
n="socket_vmnet"
477
+
} else {
478
+
n="user"
469
479
}
470
-
n="user"
480
+
out.Styled(style.Internet, "Automatically selected the {{.network}} network", out.V{"network": n})
481
+
case"user":
482
+
default:
483
+
exit.Message(reason.Usage, "--network with QEMU must be 'user' or 'socket_vmnet'")
471
484
}
472
-
ifn=="user"&&runtime.GOOS=="darwin" {
473
-
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")
485
+
ifn=="user" {
486
+
msg:="You are using the QEMU driver without a dedicated network, which doesn't support `minikube service` & `minikube tunnel` commands."
487
+
ifruntime.GOOS=="darwin" {
488
+
msg+="\nTo try the experimental dedicated network see: https://minikube.sigs.k8s.io/docs/drivers/qemu/#networking"
0 commit comments