diff --git a/cmd/minikube/cmd/start_flags.go b/cmd/minikube/cmd/start_flags.go index c04ef01cfb..b9aa10e172 100644 --- a/cmd/minikube/cmd/start_flags.go +++ b/cmd/minikube/cmd/start_flags.go @@ -315,7 +315,7 @@ func generateClusterConfig(cmd *cobra.Command, existing *config.ClusterConfig, k HostOnlyNicType: viper.GetString(hostOnlyNicType), NatNicType: viper.GetString(natNicType), StartHostTimeout: viper.GetDuration(waitTimeout), - ExposedPorts: viper.GetStringSlice(ports), + ExposedPorts: viper.GetStringSlice(ports), KubernetesConfig: config.KubernetesConfig{ KubernetesVersion: k8sVersion, ClusterName: ClusterFlagValue(), diff --git a/pkg/minikube/config/types.go b/pkg/minikube/config/types.go index 7f3e6033e2..e56086b960 100644 --- a/pkg/minikube/config/types.go +++ b/pkg/minikube/config/types.go @@ -71,7 +71,7 @@ type ClusterConfig struct { Addons map[string]bool VerifyComponents map[string]bool // map of components to verify and wait for after start. StartHostTimeout time.Duration - ExposedPorts []string // Only used by the docker and podman driver + ExposedPorts []string // Only used by the docker and podman driver } // KubernetesConfig contains the parameters used to configure the VM Kubernetes.