提交 f7b8525a 编写于 作者: T Thomas Stromberg

Add error if a non-default profile name is used with the none driver

上级 dd87bbb4
......@@ -595,6 +595,10 @@ func validateConfig() {
var cpuCount int
if viper.GetString(vmDriver) == constants.DriverNone {
if cfg.GetMachineName() != constants.DefaultMachineName {
exit.WithCodeT(exit.Config, "The 'none' driver does not support multiple profiles: https://minikube.sigs.k8s.io/docs/reference/drivers/none/")
}
// Uses the gopsutil cpu package to count the number of physical cpu cores
ci, err := cpu.Counts(false)
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册