Skip to content

Commit

Permalink
Fixes repository for storage-provisioner
Browse files Browse the repository at this point in the history
Signed-off-by: Zhongcheng Lao <[email protected]>
  • Loading branch information
laozc committed Sep 29, 2019
1 parent a92493b commit f43690c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/minikube/bootstrapper/images/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ func getMinikubeRepository(imageRepository string) string {
}

// CachedImages gets the images to cache for kubeadm for a version
func CachedImages(imageRepository string, kubernetesVersionStr string) []string {
imageRepository = getImageRepository(imageRepository)
minikubeRepository := getMinikubeRepository(imageRepository)
func CachedImages(imageRepositoryStr string, kubernetesVersionStr string) []string {
imageRepository := getImageRepository(imageRepositoryStr)
minikubeRepository := getMinikubeRepository(imageRepositoryStr)

v1_16plus := semver.MustParseRange(">=1.16.0")
v1_14plus := semver.MustParseRange(">=1.14.0 <1.16.0")
Expand Down Expand Up @@ -146,8 +146,8 @@ func CachedImages(imageRepository string, kubernetesVersionStr string) []string
}

// PauseImage returns the image name for pause image (for pod infra)
func PauseImage(imageRepository string, kubernetesVersionStr string) string {
imageRepository = getImageRepository(imageRepository)
func PauseImage(imageRepositoryStr string, kubernetesVersionStr string) string {
imageRepository := getImageRepository(imageRepositoryStr)

v1_16plus := semver.MustParseRange(">=1.16.0")
v1_14plus := semver.MustParseRange(">=1.14.0 <1.16.0")
Expand Down

0 comments on commit f43690c

Please sign in to comment.