From 9d940e234f78c082bde2369b816eeaed8fa912a6 Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Wed, 8 Sep 2021 12:19:48 -0700 Subject: [PATCH] ask user for config values even if already set --- cmd/minikube/cmd/config/configure.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cmd/minikube/cmd/config/configure.go b/cmd/minikube/cmd/config/configure.go index cfa7dc7a79..54b2d0df26 100644 --- a/cmd/minikube/cmd/config/configure.go +++ b/cmd/minikube/cmd/config/configure.go @@ -199,13 +199,9 @@ var addonsConfigureCmd = &cobra.Command{ return net.ParseIP(s) != nil } - if cfg.KubernetesConfig.LoadBalancerStartIP == "" { - cfg.KubernetesConfig.LoadBalancerStartIP = AskForStaticValidatedValue("-- Enter Load Balancer Start IP: ", validator) - } + cfg.KubernetesConfig.LoadBalancerStartIP = AskForStaticValidatedValue("-- Enter Load Balancer Start IP: ", validator) - if cfg.KubernetesConfig.LoadBalancerEndIP == "" { - cfg.KubernetesConfig.LoadBalancerEndIP = AskForStaticValidatedValue("-- Enter Load Balancer End IP: ", validator) - } + cfg.KubernetesConfig.LoadBalancerEndIP = AskForStaticValidatedValue("-- Enter Load Balancer End IP: ", validator) if err := config.SaveProfile(profile, cfg); err != nil { out.ErrT(style.Fatal, "Failed to save config {{.profile}}", out.V{"profile": profile})