From 1888b5a1b225c5d4a14804b1a4f53dba5046f4a1 Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Fri, 12 Feb 2021 15:11:26 -0800 Subject: [PATCH 1/2] do not send info to stderr --- pkg/minikube/assets/addons.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/minikube/assets/addons.go b/pkg/minikube/assets/addons.go index 4b4db916ab43..6a971fbfbcfc 100644 --- a/pkg/minikube/assets/addons.go +++ b/pkg/minikube/assets/addons.go @@ -691,17 +691,17 @@ func GenerateTemplateData(addon *Addon, cfg config.KubernetesConfig) interface{} // Send messages to stderr due to some tests rely on stdout if override, ok := opts.CustomRegistries[name]; ok { - out.ErrT(style.Option, "Using image {{.registry}}{{.image}}", out.V{ + out.Step(style.Option, "Using image {{.registry}}{{.image}}", out.V{ "registry": override, "image": image, }) } else if opts.ImageRepository != "" { - out.ErrT(style.Option, "Using image {{.registry}}{{.image}} (global image repository)", out.V{ + out.Step(style.Option, "Using image {{.registry}}{{.image}} (global image repository)", out.V{ "registry": opts.ImageRepository, "image": image, }) } else { - out.ErrT(style.Option, "Using image {{.registry}}{{.image}}", out.V{ + out.Step(style.Option, "Using image {{.registry}}{{.image}}", out.V{ "registry": opts.Registries[name], "image": image, }) From 50138e6bbe17331d30874fd0235f9396c76eacea Mon Sep 17 00:00:00 2001 From: Medya Gh Date: Fri, 12 Feb 2021 15:16:49 -0800 Subject: [PATCH 2/2] remove stale comment --- pkg/minikube/assets/addons.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/minikube/assets/addons.go b/pkg/minikube/assets/addons.go index 6a971fbfbcfc..41050358ab92 100644 --- a/pkg/minikube/assets/addons.go +++ b/pkg/minikube/assets/addons.go @@ -689,7 +689,6 @@ func GenerateTemplateData(addon *Addon, cfg config.KubernetesConfig) interface{} opts.Registries[name] = "" // Avoid nil access when rendering } - // Send messages to stderr due to some tests rely on stdout if override, ok := opts.CustomRegistries[name]; ok { out.Step(style.Option, "Using image {{.registry}}{{.image}}", out.V{ "registry": override,