Skip to content

Commit

Permalink
fix empty global image repo
Browse files Browse the repository at this point in the history
Signed-off-by: Ling Samuel <[email protected]>
  • Loading branch information
lingsamuel committed Jan 13, 2021
1 parent 8dd31ec commit 8813e73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/minikube/assets/addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func GenerateTemplateData(addon *Addon, cfg config.KubernetesConfig) interface{}
Registries: addon.Registries,
CustomRegistries: make(map[string]string),
}
if !strings.HasSuffix(opts.ImageRepository, "/") {
if opts.ImageRepository != "" && !strings.HasSuffix(opts.ImageRepository, "/") {
opts.ImageRepository = opts.ImageRepository + "/"
}

Expand Down

0 comments on commit 8813e73

Please sign in to comment.