提交 0a5b64ee 编写于 作者: T Thomas Stromberg

Improve text strings for existing VM's and setting cluster permissions

上级 452054bf
......@@ -331,10 +331,7 @@ func startHost(api libmachine.API, mc cfg.MachineConfig) (*host.Host, bool) {
prepareNone()
} else {
if exists {
if cfg.GetMachineName() == constants.DefaultMachineName {
console.OutStyle("tip", "Tip: To create another VM, use 'minikube start -p <new name>' or use 'minikube delete' to delete this one.")
}
console.OutStyle("waiting", "Waiting for existing %q VM to start ...", cfg.GetMachineName())
console.OutStyle("waiting", "Spinning up existing VM for %q ...", cfg.GetMachineName())
} else {
console.OutStyle("starting-vm", "Creating %s VM (CPUs=%d, Memory=%dMB, Disk=%dMB) ...", mc.VMDriver, mc.CPUs, mc.Memory, mc.DiskSize)
}
......
......@@ -188,7 +188,7 @@ func (k *KubeadmBootstrapper) StartCluster(k8s config.KubernetesConfig) error {
}
// NOTE: We have not yet asserted that we can access the apiserver. Now would be a great time to do so.
console.OutStyle("permissions", "Setting up cluster admin privileges ...")
console.OutStyle("permissions", "Configuring cluster permissions ...")
if err := util.RetryAfter(100, elevateKubeSystemPrivileges, time.Millisecond*500); err != nil {
return errors.Wrap(err, "timed out waiting to elevate kube-system RBAC privileges")
}
......
......@@ -80,10 +80,14 @@ func StartHost(api libmachine.API, config cfg.MachineConfig) (*host.Host, error)
}
if h.Driver.DriverName() != config.VMDriver {
console.Warning("Ignoring --vm-driver=%s, as the %q host was created using the %s driver.",
console.Out("\n")
console.Warning("Ignoring --vm-driver=%s, as the existing %q VM was created using the %s driver.",
config.VMDriver, cfg.GetMachineName(), h.Driver.DriverName())
console.Warning("To change drivers, create a new host using `minikube start -p <name>` or run `minikube delete -p %s`",
h.Driver.DriverName(), cfg.GetMachineName())
console.Warning("To switch drivers, you may create a new VM using `minikube start -p <name> --vm-driver=%s`", config.VMDriver)
console.Warning("Alternatively, you may delete the existing VM using `minikube delete -p %s`", cfg.GetMachineName())
console.Out("\n")
} else if exists && cfg.GetMachineName() == constants.DefaultMachineName {
console.OutStyle("tip", "Tip: To create a new cluster, use 'minikube start -p <new name>' or use 'minikube delete' to delete this one.")
}
s, err := h.Driver.GetState()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册