From abdcd2ce1db9487ac98c82222574474660f9b54b Mon Sep 17 00:00:00 2001 From: Mark Gibbons Date: Thu, 31 May 2018 03:31:28 +0100 Subject: [PATCH] changed to use MustParseRange --- pkg/minikube/constants/constants.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/minikube/constants/constants.go b/pkg/minikube/constants/constants.go index 6d051859e0e8..3baa84cf795d 100644 --- a/pkg/minikube/constants/constants.go +++ b/pkg/minikube/constants/constants.go @@ -227,9 +227,9 @@ func GetKubeadmCachedImages(kubernetesVersionStr string) []string { "k8s.gcr.io/kube-apiserver-amd64:" + kubernetesVersionStr, } - v1_10, _ := semver.ParseRange(">=1.10.0 <1.11.0") - v1_9, _ := semver.ParseRange(">=1.9.0 <1.10.0") - v1_8, _ := semver.ParseRange(">=1.8.0 <1.9.0") + v1_10 := semver.MustParseRange(">=1.10.0 <1.11.0") + v1_9 := semver.MustParseRange(">=1.9.0 <1.10.0") + v1_8 := semver.MustParseRange(">=1.8.0 <1.9.0") kubernetesVersion, err := semver.Make(strings.TrimPrefix(kubernetesVersionStr, minikubeVersion.VersionPrefix)) if err != nil {