提交 4fd29be5 编写于 作者: M Medya Gh

lint and comment

上级 5176806e
......@@ -57,7 +57,7 @@ var ProfileCmd = &cobra.Command{
console.ErrLn("Error loading profile config: %v", err)
}
// don't change context is user has started the minikube with --keep-context
if cc.MachineConfig.KeepContext == false {
if !cc.MachineConfig.KeepContext {
err = pkgutil.SetCurrentContext(constants.KubeconfigPath, profile)
console.ErrLn("error while setting kubectl current context : %v", err)
}
......
......@@ -30,7 +30,7 @@ type Config struct {
// MachineConfig contains the parameters used to start a cluster.
type MachineConfig struct {
KeepContext bool // used by start and profile command to or not to switch kubectl current context
KeepContext bool // used by start and profile command to or not to switch kubectl's current context
MinikubeISO string
Memory int
CPUs int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册