Skip to content

Commit

Permalink
fix no-limit not being respected on restart
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr committed Nov 9, 2023
1 parent 1b01b07 commit 6b0f6a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/minikube/cmd/start_flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -706,12 +706,12 @@ func upgradeExistingConfig(cmd *cobra.Command, cc *config.ClusterConfig) {
klog.Infof("config upgrade: KicBaseImage=%s", cc.KicBaseImage)
}

if cc.CPUs == 0 {
if cc.CPUs == 0 && !driver.IsKIC(cc.Driver) {
klog.Info("Existing config file was missing cpu. (could be an old minikube config), will use the default value")
cc.CPUs = viper.GetInt(cpus)
}

if cc.Memory == 0 {
if cc.Memory == 0 && !driver.IsKIC(cc.Driver) {
klog.Info("Existing config file was missing memory. (could be an old minikube config), will use the default value")
memInMB := getMemorySize(cmd, cc.Driver)
cc.Memory = memInMB
Expand Down

0 comments on commit 6b0f6a6

Please sign in to comment.