do not send info to stderr

pull/10462/head
Medya Gh 2021-02-12 15:11:26 -08:00
parent a99c6c2073
commit 1888b5a1b2
1 changed files with 3 additions and 3 deletions

View File

@ -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,
})