From e2acd0d657d24b9b398bd0d6fb495fbf50fb9392 Mon Sep 17 00:00:00 2001 From: tripolkaandrey Date: Fri, 12 Mar 2021 12:24:25 +0200 Subject: [PATCH] added check for enabled registry addon --- pkg/addons/addons.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/addons/addons.go b/pkg/addons/addons.go index 81f897b3a9..23f97428ea 100644 --- a/pkg/addons/addons.go +++ b/pkg/addons/addons.go @@ -198,7 +198,9 @@ https://github.com/kubernetes/minikube/issues/7332`, out.V{"driver_name": cc.Dri if err != nil { return errors.Wrap(err, "registry port") } - out.Styled(style.Tip, `Registry addon on with {{.driver}} uses {{.port}} please use that instead of default 5000`, out.V{"driver": cc.Driver, "port": port}) + if enable { + out.Styled(style.Tip, `Registry addon on with {{.driver}} uses {{.port}} please use that instead of default 5000`, out.V{"driver": cc.Driver, "port": port}) + } out.Styled(style.Documentation, `For more information see: https://minikube.sigs.k8s.io/docs/drivers/{{.driver}}`, out.V{"driver": cc.Driver}) } }