Fixed error exit. Added docs
parent
69a5a9383c
commit
4e1bcc06ce
|
@ -1090,7 +1090,7 @@ func validateFlags(cmd *cobra.Command, drvName string) {
|
|||
if cmd.Flags().Changed(humanReadableDiskSize) {
|
||||
err := validateDiskSize(viper.GetString(humanReadableDiskSize))
|
||||
if err != nil {
|
||||
exit.Message(reason.Usage, "{{.err}}", out.V{"err": err})
|
||||
exitIfNotForced(reason.Usage, "{{.err}}", out.V{"err": err})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -334,7 +334,6 @@
|
|||
"Insecure Docker registries to pass to the Docker daemon. The default service CIDR range will automatically be added.": "Unsichere Docker-Registrys, die an den Docker-Daemon übergeben werden. Der CIDR-Bereich des Standarddienstes wird automatisch hinzugefügt.",
|
||||
"Install VirtualBox and ensure it is in the path, or select an alternative value for --driver": "",
|
||||
"Install the latest hyperkit binary, and run 'minikube delete'": "",
|
||||
"Invalid Container Runtime: \"{{.runtime}}\". Valid runtimes are: {{.validOptions}}": "",
|
||||
"Invalid port": "",
|
||||
"Istio needs {{.minCPUs}} CPUs -- your configuration only allocates {{.cpus}} CPUs": "",
|
||||
"Istio needs {{.minMem}}MB of memory -- your configuration only allocates {{.memory}}MB": "",
|
||||
|
@ -775,7 +774,6 @@
|
|||
"VM driver is one of: %v": "VM-Treiber ist einer von: %v",
|
||||
"Valid components are: {{.valid_extra_opts}}": "",
|
||||
"Validate your KVM networks. Run: virt-host-validate and then virsh net-list --all": "",
|
||||
"Validation unable to parse disk size '{{.diskSize}}': {{.error}}": "",
|
||||
"Verify that your HTTP_PROXY and HTTPS_PROXY environment variables are set correctly.": "",
|
||||
"Verifying Kubernetes components...": "",
|
||||
"Verifying dashboard health ...": "",
|
||||
|
@ -935,6 +933,7 @@
|
|||
"{{.driver_name}} has less than 2 CPUs available, but Kubernetes requires at least 2 to be available": "",
|
||||
"{{.driver_name}} has only {{.container_limit}}MB memory but you specified {{.specified_memory}}MB": "",
|
||||
"{{.driver}} only has {{.size}}MiB available, less than the required {{.req}}MiB for Kubernetes": "",
|
||||
"{{.err}}": "",
|
||||
"{{.extra_option_component_name}}.{{.key}}={{.value}}": "",
|
||||
"{{.name}} doesn't have images.": "",
|
||||
"{{.name}} has following images:": "",
|
||||
|
|
|
@ -339,7 +339,6 @@
|
|||
"Insecure Docker registries to pass to the Docker daemon. The default service CIDR range will automatically be added.": "Registros de Docker que no son seguros y que se transferirán al daemon de Docker. Se añadirá automáticamente el intervalo CIDR de servicio predeterminado.",
|
||||
"Install VirtualBox and ensure it is in the path, or select an alternative value for --driver": "",
|
||||
"Install the latest hyperkit binary, and run 'minikube delete'": "",
|
||||
"Invalid Container Runtime: \"{{.runtime}}\". Valid runtimes are: {{.validOptions}}": "",
|
||||
"Invalid port": "",
|
||||
"Istio needs {{.minCPUs}} CPUs -- your configuration only allocates {{.cpus}} CPUs": "",
|
||||
"Istio needs {{.minMem}}MB of memory -- your configuration only allocates {{.memory}}MB": "",
|
||||
|
@ -780,7 +779,6 @@
|
|||
"VM driver is one of: %v": "El controlador de la VM es uno de los siguientes: %v",
|
||||
"Valid components are: {{.valid_extra_opts}}": "",
|
||||
"Validate your KVM networks. Run: virt-host-validate and then virsh net-list --all": "",
|
||||
"Validation unable to parse disk size '{{.diskSize}}': {{.error}}": "",
|
||||
"Verify that your HTTP_PROXY and HTTPS_PROXY environment variables are set correctly.": "",
|
||||
"Verifying Kubernetes components...": "",
|
||||
"Verifying dashboard health ...": "",
|
||||
|
@ -940,6 +938,7 @@
|
|||
"{{.driver_name}} has less than 2 CPUs available, but Kubernetes requires at least 2 to be available": "",
|
||||
"{{.driver_name}} has only {{.container_limit}}MB memory but you specified {{.specified_memory}}MB": "",
|
||||
"{{.driver}} only has {{.size}}MiB available, less than the required {{.req}}MiB for Kubernetes": "",
|
||||
"{{.err}}": "",
|
||||
"{{.extra_option_component_name}}.{{.key}}={{.value}}": "",
|
||||
"{{.name}} doesn't have images.": "",
|
||||
"{{.name}} has following images:": "",
|
||||
|
|
|
@ -948,6 +948,7 @@
|
|||
"{{.driver_name}} has less than 2 CPUs available, but Kubernetes requires at least 2 to be available": "{{.driver_name}} dispose de moins de 2 processeurs disponibles, mais Kubernetes nécessite au moins 2 procésseurs pour fonctionner",
|
||||
"{{.driver_name}} has only {{.container_limit}}MB memory but you specified {{.specified_memory}}MB": "{{.driver_name}} ne dispose que de {{.container_limit}}Mo de mémoire, mais vous avez spécifié {{.specified_memory}}Mo",
|
||||
"{{.driver}} only has {{.size}}MiB available, less than the required {{.req}}MiB for Kubernetes": "{{.driver}} ne dispose que de {{.size}}Mio disponible, moins que les {{.req}}Mio requis pour Kubernetes",
|
||||
"{{.err}}": "",
|
||||
"{{.extra_option_component_name}}.{{.key}}={{.value}}": "{{.extra_option_component_name}}.{{.key}}={{.value}}",
|
||||
"{{.name}} doesn't have images.": "{{.name}} n'a pas d'images.",
|
||||
"{{.name}} has following images:": "{{.name}} a les images suivantes :",
|
||||
|
|
|
@ -325,7 +325,6 @@
|
|||
"Insecure Docker registries to pass to the Docker daemon. The default service CIDR range will automatically be added.": "Docker デーモンに渡す Docker レジストリが安全ではありません。デフォルトのサービス CIDR 範囲が自動的に追加されます",
|
||||
"Install VirtualBox and ensure it is in the path, or select an alternative value for --driver": "",
|
||||
"Install the latest hyperkit binary, and run 'minikube delete'": "",
|
||||
"Invalid Container Runtime: \"{{.runtime}}\". Valid runtimes are: {{.validOptions}}": "",
|
||||
"Invalid port": "",
|
||||
"Istio needs {{.minCPUs}} CPUs -- your configuration only allocates {{.cpus}} CPUs": "",
|
||||
"Istio needs {{.minMem}}MB of memory -- your configuration only allocates {{.memory}}MB": "",
|
||||
|
@ -957,6 +956,7 @@
|
|||
"{{.driver}} does not appear to be installed": "{{.driver}} がインストールされていないようです",
|
||||
"{{.driver}} does not appear to be installed, but is specified by an existing profile. Please run 'minikube delete' or install {{.driver}}": "{{.driver}} がインストールされていないようですが、既存のプロフィールから指定されています。「 minikube delete 」を実行、あるいは {{.driver}} をインストールしてください",
|
||||
"{{.driver}} only has {{.size}}MiB available, less than the required {{.req}}MiB for Kubernetes": "",
|
||||
"{{.err}}": "",
|
||||
"{{.extra_option_component_name}}.{{.key}}={{.value}}": "{{.extra_option_component_name}}.{{.key}}={{.value}}",
|
||||
"{{.name}} doesn't have images.": "",
|
||||
"{{.name}} has following images:": "",
|
||||
|
|
|
@ -356,7 +356,6 @@
|
|||
"Insecure Docker registries to pass to the Docker daemon. The default service CIDR range will automatically be added.": "",
|
||||
"Install VirtualBox and ensure it is in the path, or select an alternative value for --driver": "",
|
||||
"Install the latest hyperkit binary, and run 'minikube delete'": "",
|
||||
"Invalid Container Runtime: \"{{.runtime}}\". Valid runtimes are: {{.validOptions}}": "",
|
||||
"Invalid port": "",
|
||||
"Istio needs {{.minCPUs}} CPUs -- your configuration only allocates {{.cpus}} CPUs": "",
|
||||
"Istio needs {{.minMem}}MB of memory -- your configuration only allocates {{.memory}}MB": "",
|
||||
|
@ -781,7 +780,6 @@
|
|||
"Using the {{.driver}} driver based on user configuration": "유저 환경 설정 정보에 기반하여 {{.driver}} 드라이버를 사용하는 중",
|
||||
"Valid components are: {{.valid_extra_opts}}": "",
|
||||
"Validate your KVM networks. Run: virt-host-validate and then virsh net-list --all": "",
|
||||
"Validation unable to parse disk size '{{.diskSize}}': {{.error}}": "",
|
||||
"Verify that your HTTP_PROXY and HTTPS_PROXY environment variables are set correctly.": "",
|
||||
"Verifying Kubernetes components...": "Kubernetes 구성 요소를 확인...",
|
||||
"Verifying dashboard health ...": "",
|
||||
|
@ -952,6 +950,7 @@
|
|||
"{{.driver_name}} has only {{.container_limit}}MB memory but you specified {{.specified_memory}}MB": "",
|
||||
"{{.driver}} does not appear to be installed": "{{.driver}} 가 설치되지 않았습니다",
|
||||
"{{.driver}} only has {{.size}}MiB available, less than the required {{.req}}MiB for Kubernetes": "",
|
||||
"{{.err}}": "",
|
||||
"{{.extra_option_component_name}}.{{.key}}={{.value}}": "",
|
||||
"{{.name}} cluster does not exist": "{{.name}} 클러스터가 존재하지 않습니다",
|
||||
"{{.name}} doesn't have images.": "{{.name}} 이미지가 없습니다.",
|
||||
|
|
|
@ -343,7 +343,6 @@
|
|||
"Insecure Docker registries to pass to the Docker daemon. The default service CIDR range will automatically be added.": "",
|
||||
"Install VirtualBox and ensure it is in the path, or select an alternative value for --driver": "",
|
||||
"Install the latest hyperkit binary, and run 'minikube delete'": "",
|
||||
"Invalid Container Runtime: \"{{.runtime}}\". Valid runtimes are: {{.validOptions}}": "",
|
||||
"Invalid port": "",
|
||||
"Invalid size passed in argument: {{.error}}": "Nieprawidłowy rozmiar przekazany w argumencie: {{.error}}",
|
||||
"Istio needs {{.minCPUs}} CPUs -- your configuration only allocates {{.cpus}} CPUs": "",
|
||||
|
@ -789,7 +788,6 @@
|
|||
"VM driver is one of: %v": "Sterownik wirtualnej maszyny to jeden z: %v",
|
||||
"Valid components are: {{.valid_extra_opts}}": "",
|
||||
"Validate your KVM networks. Run: virt-host-validate and then virsh net-list --all": "",
|
||||
"Validation unable to parse disk size '{{.diskSize}}': {{.error}}": "",
|
||||
"Verify that your HTTP_PROXY and HTTPS_PROXY environment variables are set correctly.": "Zweryfikuj czy zmienne HTTP_PROXY i HTTPS_PROXY są ustawione poprawnie",
|
||||
"Verify the IP address of the running cluster in kubeconfig.": "Weryfikacja adresu IP działającego klastra w kubeconfig",
|
||||
"Verifying Kubernetes components...": "",
|
||||
|
@ -954,6 +952,7 @@
|
|||
"{{.driver_name}} has less than 2 CPUs available, but Kubernetes requires at least 2 to be available": "",
|
||||
"{{.driver_name}} has only {{.container_limit}}MB memory but you specified {{.specified_memory}}MB": "",
|
||||
"{{.driver}} only has {{.size}}MiB available, less than the required {{.req}}MiB for Kubernetes": "sterownik {{.driver}} ma tylko {{.size}}MiB dostępnej przestrzeni dyskowej, to mniej niż wymagane {{.req}}MiB dla Kubernetesa",
|
||||
"{{.err}}": "",
|
||||
"{{.extra_option_component_name}}.{{.key}}={{.value}}": "",
|
||||
"{{.name}} cluster does not exist": "Klaster {{.name}} nie istnieje",
|
||||
"{{.name}} doesn't have images.": "{{.name}} nie ma obrazów.",
|
||||
|
|
|
@ -313,7 +313,6 @@
|
|||
"Insecure Docker registries to pass to the Docker daemon. The default service CIDR range will automatically be added.": "",
|
||||
"Install VirtualBox and ensure it is in the path, or select an alternative value for --driver": "",
|
||||
"Install the latest hyperkit binary, and run 'minikube delete'": "",
|
||||
"Invalid Container Runtime: \"{{.runtime}}\". Valid runtimes are: {{.validOptions}}": "",
|
||||
"Invalid port": "",
|
||||
"Istio needs {{.minCPUs}} CPUs -- your configuration only allocates {{.cpus}} CPUs": "",
|
||||
"Istio needs {{.minMem}}MB of memory -- your configuration only allocates {{.memory}}MB": "",
|
||||
|
@ -722,7 +721,6 @@
|
|||
"Using the {{.driver}} driver based on user configuration": "",
|
||||
"Valid components are: {{.valid_extra_opts}}": "",
|
||||
"Validate your KVM networks. Run: virt-host-validate and then virsh net-list --all": "",
|
||||
"Validation unable to parse disk size '{{.diskSize}}': {{.error}}": "",
|
||||
"Verify that your HTTP_PROXY and HTTPS_PROXY environment variables are set correctly.": "",
|
||||
"Verifying Kubernetes components...": "",
|
||||
"Verifying dashboard health ...": "",
|
||||
|
@ -880,6 +878,7 @@
|
|||
"{{.driver_name}} has less than 2 CPUs available, but Kubernetes requires at least 2 to be available": "",
|
||||
"{{.driver_name}} has only {{.container_limit}}MB memory but you specified {{.specified_memory}}MB": "",
|
||||
"{{.driver}} only has {{.size}}MiB available, less than the required {{.req}}MiB for Kubernetes": "",
|
||||
"{{.err}}": "",
|
||||
"{{.extra_option_component_name}}.{{.key}}={{.value}}": "",
|
||||
"{{.name}} doesn't have images.": "",
|
||||
"{{.name}} has following images:": "",
|
||||
|
|
|
@ -415,7 +415,6 @@
|
|||
"Insecure Docker registries to pass to the Docker daemon. The default service CIDR range will automatically be added.": "传递给 Docker 守护进程的不安全 Docker 注册表。系统会自动添加默认服务 CIDR 范围。",
|
||||
"Install VirtualBox and ensure it is in the path, or select an alternative value for --driver": "",
|
||||
"Install the latest hyperkit binary, and run 'minikube delete'": "",
|
||||
"Invalid Container Runtime: \"{{.runtime}}\". Valid runtimes are: {{.validOptions}}": "",
|
||||
"Invalid port": "",
|
||||
"Istio needs {{.minCPUs}} CPUs -- your configuration only allocates {{.cpus}} CPUs": "",
|
||||
"Istio needs {{.minMem}}MB of memory -- your configuration only allocates {{.memory}}MB": "",
|
||||
|
@ -890,7 +889,6 @@
|
|||
"VM may be unable to resolve external DNS records": "虚拟机可能无法解析外部 DNS 记录",
|
||||
"Valid components are: {{.valid_extra_opts}}": "",
|
||||
"Validate your KVM networks. Run: virt-host-validate and then virsh net-list --all": "",
|
||||
"Validation unable to parse disk size '{{.diskSize}}': {{.error}}": "",
|
||||
"Verify that your HTTP_PROXY and HTTPS_PROXY environment variables are set correctly.": "验证是否正确设置了 HTTP_PROXY 和 HTTPS_PROXY 环境变量。",
|
||||
"Verify the IP address of the running cluster in kubeconfig.": "在 kubeconfig 中验证正在运行的集群 IP 地址。",
|
||||
"Verifying Kubernetes components...": "",
|
||||
|
@ -1064,6 +1062,7 @@
|
|||
"{{.driver}} does not appear to be installed": "似乎并未安装 {{.driver}}",
|
||||
"{{.driver}} does not appear to be installed, but is specified by an existing profile. Please run 'minikube delete' or install {{.driver}}": "似乎并未安装 {{.driver}},但已被当前的配置文件指定。请执行 'minikube delete' 或者安装 {{.driver}}",
|
||||
"{{.driver}} only has {{.size}}MiB available, less than the required {{.req}}MiB for Kubernetes": "",
|
||||
"{{.err}}": "",
|
||||
"{{.extra_option_component_name}}.{{.key}}={{.value}}": "",
|
||||
"{{.name}} doesn't have images.": "",
|
||||
"{{.name}} has following images:": "",
|
||||
|
|
Loading…
Reference in New Issue