From 6b0f6a676b64ff92a44d6b619fa30804f7878b3f Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Thu, 9 Nov 2023 09:31:57 -0800 Subject: [PATCH] fix no-limit not being respected on restart --- cmd/minikube/cmd/start_flags.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/minikube/cmd/start_flags.go b/cmd/minikube/cmd/start_flags.go index 8cf458d8c782..22b1378dd874 100644 --- a/cmd/minikube/cmd/start_flags.go +++ b/cmd/minikube/cmd/start_flags.go @@ -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