Skip to content

Commit

Permalink
Merge pull request #17598 from spowelljr/fixNoLimitRestart
Browse files Browse the repository at this point in the history
Fix no-limit not being respected on restart
  • Loading branch information
medyagh authored Nov 15, 2023
2 parents ca5c7be + 6b0f6a6 commit 8ac4c93
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
@@ -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

0 comments on commit 8ac4c93

Please sign in to comment.