add darwin conditionals

pull/14989/head
Steven Powell 2022-09-30 14:00:28 -07:00
parent 5d8512f4af
commit f1b909e44d
12 changed files with 37 additions and 25 deletions

View File

@ -88,7 +88,11 @@ var serviceCmd = &cobra.Command{
co := mustload.Healthy(cname)
if driver.IsQEMU(co.Config.Driver) && pkgnetwork.IsUser(co.Config.Network) {
exit.Message(reason.Unimplemented, "minikube service is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'")
msg := "minikube service is not currently implemented with the user network on QEMU"
if runtime.GOOS == "darwin" {
msg += ", try starting minikube with '--network=socket_vmnet'"
}
exit.Message(reason.Unimplemented, msg)
}
var services service.URLs

View File

@ -18,6 +18,7 @@ package cmd
import (
"fmt"
"runtime"
"strings"
"time"
@ -463,10 +464,12 @@ func getNetwork(driverName string) string {
return n
}
if n == "" {
out.WarningT("The default network for QEMU will change from 'user' to 'socket_vmnet' in a future release")
if runtime.GOOS == "darwin" {
out.WarningT("The default network for QEMU will change from 'user' to 'socket_vmnet' in a future release")
}
n = "user"
}
if n == "user" {
if n == "user" && runtime.GOOS == "darwin" {
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

View File

@ -21,6 +21,7 @@ import (
"os"
"os/signal"
"path/filepath"
"runtime"
"strconv"
"github.com/spf13/cobra"
@ -58,7 +59,11 @@ var tunnelCmd = &cobra.Command{
co := mustload.Healthy(cname)
if driver.IsQEMU(co.Config.Driver) && pkgnetwork.IsUser(co.Config.Network) {
exit.Message(reason.Unimplemented, "minikube tunnel is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'")
msg := "minikube tunnel is not currently implemented with the user network on QEMU"
if runtime.GOOS == "darwin" {
msg += ", try starting minikube with '--network=socket_vmnet'"
}
exit.Message(reason.Unimplemented, msg)
}
if cleanup {

View File

@ -975,10 +975,10 @@
"minikube profile was successfully set to {{.profile_name}}": "Minikube Profil wurde erfolgreich gesetzt auf {{.profile_name}}",
"minikube provisions and manages local Kubernetes clusters optimized for development workflows.": "Minikube provisioniert und managed lokale Kubernetes Cluster optimiert für Entwicklungs-Workflows.",
"minikube quickly sets up a local Kubernetes cluster": "Minikube installiert schnell einen lokalen Kubernetes Cluster",
"minikube service is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube service is not currently implemented with the user network on QEMU": "",
"minikube skips various validations when --force is supplied; this may lead to unexpected behavior": "Minikube überspringt diverse Validierungen wenn --force angegeben ist; das könnte zu unerwartetem Verhalten führen",
"minikube status --output OUTPUT. json, text": "",
"minikube tunnel is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube tunnel is not currently implemented with the user network on QEMU": "",
"minikube {{.version}} is available! Download it: {{.url}}": "Minikube {{.version}} ist verfügbar. Lade es herunter: {{.url}}",
"mkcmp is used to compare performance of two minikube binaries": "mkcmp wird verwendet um die Performance von zwei Minikube Binaries zu vergleichen",
"mount argument \"{{.value}}\" must be in form: \u003csource directory\u003e:\u003ctarget directory\u003e": "Das Argument \"{{.value}}\" für Mount muss in der Form \u003cQuell Verzeichnis\u003e:\u003cZiel Verzeichnis\u003e",

View File

@ -970,10 +970,10 @@
"minikube profile was successfully set to {{.profile_name}}": "",
"minikube provisions and manages local Kubernetes clusters optimized for development workflows.": "",
"minikube quickly sets up a local Kubernetes cluster": "",
"minikube service is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube service is not currently implemented with the user network on QEMU": "",
"minikube skips various validations when --force is supplied; this may lead to unexpected behavior": "",
"minikube status --output OUTPUT. json, text": "",
"minikube tunnel is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube tunnel is not currently implemented with the user network on QEMU": "",
"minikube {{.version}} is available! Download it: {{.url}}": "",
"mkcmp is used to compare performance of two minikube binaries": "",
"mount argument \"{{.value}}\" must be in form: \u003csource directory\u003e:\u003ctarget directory\u003e": "",

View File

@ -821,8 +821,8 @@
"Using image repository {{.name}}": "Utilisation du dépôt d'images {{.name}}…",
"Using image {{.registry}}{{.image}}": "Utilisation de l'image {{.registry}}{{.image}}",
"Using image {{.registry}}{{.image}} (global image repository)": "Utilisation de l'image {{.registry}}{{.image}} (référentiel d'images global)",
"Using qemu with --network=socket for 'socket_vmnet' is experimental": "L'utilisation de qemu avec --network=socket pour 'socket_vmnet' est expérimentale",
"Using qemu with 'socket_vmnet' network is experimental": "",
"Using qemu with --network=socket for 'socket_vmnet' is experimental": "L'utilisation de qemu avec --network=socket pour 'socket_vmnet' est expérimentale",
"Using rootless Docker driver was required, but the current Docker does not seem rootless. Try 'docker context use rootless' .": "L'utilisation du pilote Docker sans root était nécessaire, mais le Docker actuel ne semble pas sans root. Essayez 'docker context use rootless' .",
"Using rootless driver was required, but the current driver does not seem rootless": "L'utilisation d'un pilote sans root était nécessaire, mais le pilote actuel ne semble pas sans root",
"Using rootless {{.driver_name}} driver": "Utilisation du pilote {{.driver_name}} sans root",
@ -947,11 +947,11 @@
"minikube provisions and manages local Kubernetes clusters optimized for development workflows.": "minikube provisionne et gère des clusters Kubernetes locaux optimisés pour les workflows de développement.",
"minikube quickly sets up a local Kubernetes cluster": "minikube configure rapidement un cluster Kubernetes local",
"minikube service is not currently implemented with the qemu2 driver. See https://github.com/kubernetes/minikube/issues/14146 for details.": "Le service minikube n'est actuellement pas implémenté avec le pilote qemu2. Voir https://github.com/kubernetes/minikube/issues/14146 pour plus de détails.",
"minikube service is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube service is not currently implemented with the user network on QEMU": "",
"minikube skips various validations when --force is supplied; this may lead to unexpected behavior": "minikube ignore diverses validations lorsque --force est fourni ; cela peut conduire à un comportement inattendu",
"minikube status --output OUTPUT. json, text": "état minikube --sortie SORTIE. json, texte",
"minikube tunnel is not currently implemented with the qemu2 driver. See https://github.com/kubernetes/minikube/issues/14146 for details.": "Le tunnel minikube n'est actuellement pas implémenté avec le pilote qemu2. Voir https://github.com/kubernetes/minikube/issues/14146 pour plus de détails.",
"minikube tunnel is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube tunnel is not currently implemented with the user network on QEMU": "",
"minikube {{.version}} is available! Download it: {{.url}}": "minikube {{.version}} est disponible ! Téléchargez-le ici : {{.url}}",
"mkcmp is used to compare performance of two minikube binaries": "mkcmp est utilisé pour comparer les performances de deux binaires minikube",
"mount argument \"{{.value}}\" must be in form: \u003csource directory\u003e:\u003ctarget directory\u003e": "argument de montage \"{{.value}}\" doit être de la forme : \u003cdossier source\u003e:\u003cdossier de destination\u003e",
@ -1034,4 +1034,4 @@
"{{.profile}} profile is not valid: {{.err}}": "Le profil {{.profile}} n'est pas valide : {{.err}}",
"{{.type}} is not yet a supported filesystem. We will try anyways!": "{{.type}} n'est pas encore un système de fichiers pris en charge. Nous essaierons quand même !",
"{{.url}} is not accessible: {{.error}}": "{{.url}} n'est pas accessible : {{.error}}"
}
}

View File

@ -907,11 +907,11 @@
"minikube provisions and manages local Kubernetes clusters optimized for development workflows.": "minikube は、開発ワークフロー用に最適化されたローカル Kubernetes クラスターを構築・管理します。",
"minikube quickly sets up a local Kubernetes cluster": "minikube はローカル Kubernetes クラスターを迅速にセットアップします",
"minikube service is not currently implemented with the qemu2 driver. See https://github.com/kubernetes/minikube/issues/14146 for details.": "minikube サービスは現在、qemu2 ドライバーでは実装されていません。詳細については、https://github.com/kubernetes/minikube/issues/14146 を参照してください。",
"minikube service is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube service is not currently implemented with the user network on QEMU": "",
"minikube skips various validations when --force is supplied; this may lead to unexpected behavior": "minikube は --force が付与された場合、様々な検証をスキップします (これは予期せぬ挙動を引き起こすかも知れません)",
"minikube status --output OUTPUT. json, text": "minikube status --output OUTPUT. json, text",
"minikube tunnel is not currently implemented with the qemu2 driver. See https://github.com/kubernetes/minikube/issues/14146 for details.": "minikube トンネルは現在、qemu2 ドライバーでは実装されていません。 詳細については、https://github.com/kubernetes/minikube/issues/14146 を参照してください。",
"minikube tunnel is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube tunnel is not currently implemented with the user network on QEMU": "",
"minikube {{.version}} is available! Download it: {{.url}}": "minikube {{.version}} が利用可能です!次の URL からダウンロードしてください: {{.url}}",
"mkcmp is used to compare performance of two minikube binaries": "mkcmp で 2 つの minikube のバイナリーのパフォーマンスを比較できます",
"mount argument \"{{.value}}\" must be in form: \u003csource directory\u003e:\u003ctarget directory\u003e": "マウント引数「{{.value}}」は次の形式でなければなりません: \u003cソースディレクトリー\u003e:\u003cターゲットディレクトリー\u003e",
@ -989,4 +989,4 @@
"{{.profile}} profile is not valid: {{.err}}": "{{.profile}} プロファイルは無効です: {{.err}}",
"{{.type}} is not yet a supported filesystem. We will try anyways!": "{{.type}} は未サポートのファイルシステムです。とにかくやってみます!",
"{{.url}} is not accessible: {{.error}}": "{{.url}} にアクセスできません: {{.error}}"
}
}

View File

@ -978,10 +978,10 @@
"minikube profile was successfully set to {{.profile_name}}": "",
"minikube provisions and manages local Kubernetes clusters optimized for development workflows.": "minikube는 개발 워크플로우에 최적화된 로컬 쿠버네티스를 제공하고 관리합니다.",
"minikube quickly sets up a local Kubernetes cluster": "",
"minikube service is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube service is not currently implemented with the user network on QEMU": "",
"minikube skips various validations when --force is supplied; this may lead to unexpected behavior": "",
"minikube status --output OUTPUT. json, text": "",
"minikube tunnel is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube tunnel is not currently implemented with the user network on QEMU": "",
"minikube {{.version}} is available! Download it: {{.url}}": "minikube {{.version}} 이 사용가능합니다! 다음 경로에서 다운받으세요: {{.url}}",
"mkcmp is used to compare performance of two minikube binaries": "",
"mount argument \"{{.value}}\" must be in form: \u003csource directory\u003e:\u003ctarget directory\u003e": "",

View File

@ -983,10 +983,10 @@
"minikube profile was successfully set to {{.profile_name}}": "profil minikube został z powodzeniem zmieniony na: {{.profile_name}}",
"minikube provisions and manages local Kubernetes clusters optimized for development workflows.": "minikube dostarcza lokalne klastry Kubernetesa zoptymalizowane do celów rozwoju oprogramowania oraz zarządza nimi",
"minikube quickly sets up a local Kubernetes cluster": "minikube szybko inicjalizuje lokalny klaster Kubernetesa",
"minikube service is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube service is not currently implemented with the user network on QEMU": "",
"minikube skips various validations when --force is supplied; this may lead to unexpected behavior": "użycie flagi --force sprawia, że minikube pomija pewne walidacje, co może skutkować niespodziewanym zachowaniem",
"minikube status --output OUTPUT. json, text": "",
"minikube tunnel is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube tunnel is not currently implemented with the user network on QEMU": "",
"minikube {{.version}} is available! Download it: {{.url}}": "minikube {{.version}} jest dostępne! Pobierz je z: {{.url}}",
"mkcmp is used to compare performance of two minikube binaries": "",
"mount argument \"{{.value}}\" must be in form: \u003csource directory\u003e:\u003ctarget directory\u003e": "",

View File

@ -902,10 +902,10 @@
"minikube profile was successfully set to {{.profile_name}}": "",
"minikube provisions and manages local Kubernetes clusters optimized for development workflows.": "",
"minikube quickly sets up a local Kubernetes cluster": "",
"minikube service is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube service is not currently implemented with the user network on QEMU": "",
"minikube skips various validations when --force is supplied; this may lead to unexpected behavior": "",
"minikube status --output OUTPUT. json, text": "",
"minikube tunnel is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube tunnel is not currently implemented with the user network on QEMU": "",
"minikube {{.version}} is available! Download it: {{.url}}": "",
"mkcmp is used to compare performance of two minikube binaries": "",
"mount argument \"{{.value}}\" must be in form: \u003csource directory\u003e:\u003ctarget directory\u003e": "",

View File

@ -902,10 +902,10 @@
"minikube profile was successfully set to {{.profile_name}}": "",
"minikube provisions and manages local Kubernetes clusters optimized for development workflows.": "",
"minikube quickly sets up a local Kubernetes cluster": "",
"minikube service is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube service is not currently implemented with the user network on QEMU": "",
"minikube skips various validations when --force is supplied; this may lead to unexpected behavior": "",
"minikube status --output OUTPUT. json, text": "",
"minikube tunnel is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube tunnel is not currently implemented with the user network on QEMU": "",
"minikube {{.version}} is available! Download it: {{.url}}": "",
"mkcmp is used to compare performance of two minikube binaries": "",
"mount argument \"{{.value}}\" must be in form: \u003csource directory\u003e:\u003ctarget directory\u003e": "",

View File

@ -1093,10 +1093,10 @@
"minikube profile was successfully set to {{.profile_name}}": "",
"minikube provisions and manages local Kubernetes clusters optimized for development workflows.": "",
"minikube quickly sets up a local Kubernetes cluster": "",
"minikube service is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube service is not currently implemented with the user network on QEMU": "",
"minikube skips various validations when --force is supplied; this may lead to unexpected behavior": "",
"minikube status --output OUTPUT. json, text": "",
"minikube tunnel is not currently implemented with the user network on QEMU, try starting minikube with '--network=socket_vmnet'": "",
"minikube tunnel is not currently implemented with the user network on QEMU": "",
"minikube {{.version}} is available! Download it: {{.url}}": "",
"mkcmp is used to compare performance of two minikube binaries": "mkcmp 用于对比两个 minikube 二进制的性能",
"mount argument \"{{.value}}\" must be in form: \u003csource directory\u003e:\u003ctarget directory\u003e": "",