added comment and append error to message
parent
355f431c2d
commit
3cd016b06f
|
@ -403,6 +403,7 @@ func getCNIConfig(cmd *cobra.Command) string {
|
||||||
return chosenCNI
|
return chosenCNI
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// getExtraOptions gets Kubernetes extra options from flags
|
||||||
func getExtraOptions() config.ExtraOptionSlice {
|
func getExtraOptions() config.ExtraOptionSlice {
|
||||||
extraOptionVals := config.ExtraOptionSlice{}
|
extraOptionVals := config.ExtraOptionSlice{}
|
||||||
val := viper.GetString(extraOptions)
|
val := viper.GetString(extraOptions)
|
||||||
|
@ -410,7 +411,7 @@ func getExtraOptions() config.ExtraOptionSlice {
|
||||||
return extraOptionVals
|
return extraOptionVals
|
||||||
}
|
}
|
||||||
if err := extraOptionVals.Set(val); err != nil {
|
if err := extraOptionVals.Set(val); err != nil {
|
||||||
klog.Errorf("Invalid %s flag provided, flag will be ignored", extraOptions)
|
klog.Errorf("Invalid %s flag provided, flag will be ignored: %v", extraOptions, err)
|
||||||
}
|
}
|
||||||
return extraOptionVals
|
return extraOptionVals
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@ minikube start [flags]
|
||||||
--dry-run dry-run mode. Validates configuration, but does not mutate system state
|
--dry-run dry-run mode. Validates configuration, but does not mutate system state
|
||||||
--embed-certs if true, will embed the certs in kubeconfig.
|
--embed-certs if true, will embed the certs in kubeconfig.
|
||||||
--enable-default-cni DEPRECATED: Replaced by --cni=bridge
|
--enable-default-cni DEPRECATED: Replaced by --cni=bridge
|
||||||
--extra-config ExtraOption A set of key=value pairs that describe configuration that may be passed to different components.
|
--extra-config string A set of key=value pairs that describe configuration that may be passed to different components.
|
||||||
The key should be '.' separated, and the first part before the dot is the component to apply the configuration to.
|
The key should be '.' separated, and the first part before the dot is the component to apply the configuration to.
|
||||||
Valid components are: kubelet, kubeadm, apiserver, controller-manager, etcd, proxy, scheduler
|
Valid components are: kubelet, kubeadm, apiserver, controller-manager, etcd, proxy, scheduler
|
||||||
Valid kubeadm parameters: ignore-preflight-errors, dry-run, kubeconfig, kubeconfig-dir, node-name, cri-socket, experimental-upload-certs, certificate-key, rootfs, skip-phases, pod-network-cidr
|
Valid kubeadm parameters: ignore-preflight-errors, dry-run, kubeconfig, kubeconfig-dir, node-name, cri-socket, experimental-upload-certs, certificate-key, rootfs, skip-phases, pod-network-cidr
|
||||||
|
|
Loading…
Reference in New Issue