From 836aee0084cac38c1734d78179ed017157f93d0f Mon Sep 17 00:00:00 2001 From: dlorenc Date: Thu, 28 Jun 2018 07:40:36 -0700 Subject: [PATCH] Code review feedback. --- pkg/minikube/bootstrapper/kubeadm/templates.go | 3 ++- pkg/minikube/bootstrapper/kubeadm/versions.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/minikube/bootstrapper/kubeadm/templates.go b/pkg/minikube/bootstrapper/kubeadm/templates.go index e93dfc64f143..b68bd0930109 100644 --- a/pkg/minikube/bootstrapper/kubeadm/templates.go +++ b/pkg/minikube/bootstrapper/kubeadm/templates.go @@ -29,6 +29,7 @@ kind: MasterConfiguration api: advertiseAddress: {{.AdvertiseAddress}} bindPort: {{.APIServerPort}} + controlPlaneEndpoint: localhost kubernetesVersion: {{.KubernetesVersion}} certificatesDir: {{.CertDir}} networking: @@ -75,7 +76,7 @@ sudo /usr/bin/kubeadm alpha phase etcd local --config {{.KubeadmConfigFile}} var kubeadmInitTemplate = template.Must(template.New("kubeadmInitTemplate").Parse(` sudo /usr/bin/kubeadm init --config {{.KubeadmConfigFile}} {{if .SkipPreflightChecks}}--skip-preflight-checks{{else}}{{range .Preflights}}--ignore-preflight-errors={{.}} {{end}}{{end}} && -sudo /usr/bin/kubeadm alpha phase addon all +sudo /usr/bin/kubeadm alpha phase addon kube-dns `)) // printMapInOrder sorts the keys and prints the map in order, combining key diff --git a/pkg/minikube/bootstrapper/kubeadm/versions.go b/pkg/minikube/bootstrapper/kubeadm/versions.go index 3d33432c94db..1dd009852d2e 100644 --- a/pkg/minikube/bootstrapper/kubeadm/versions.go +++ b/pkg/minikube/bootstrapper/kubeadm/versions.go @@ -205,7 +205,7 @@ var versionSpecificOpts = []VersionedExtraOption{ Key: "admission-control", Value: strings.Join(util.DefaultAdmissionControllers, ","), }, - LessThanOrEqual: semver.MustParse("1.10.10"), + LessThanOrEqual: semver.MustParse("1.10.1000"), // Semver doesn't support wildcards. GreaterThanOrEqual: semver.MustParse("1.9.0-alpha.0"), }, {