lint and comment
parent
5176806eb2
commit
4fd29be51c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue