Skip to content

Commit 8ac4c93

Browse files
authored
Merge pull request #17598 from spowelljr/fixNoLimitRestart
Fix no-limit not being respected on restart
2 parents ca5c7be + 6b0f6a6 commit 8ac4c93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/minikube/cmd/start_flags.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,12 +706,12 @@ func upgradeExistingConfig(cmd *cobra.Command, cc *config.ClusterConfig) {
706706
klog.Infof("config upgrade: KicBaseImage=%s", cc.KicBaseImage)
707707
}
708708

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

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

0 commit comments

Comments
 (0)