Use logger for helm output (#1585)

* use logger for helm output

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>

* update integration test output

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>

* make logging output configurable

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>

* also compare stderr in integration tests

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>

---------

Signed-off-by: Tim Ramlot <42113979+inteon@users.noreply.github.com>
This commit is contained in:
Tim Ramlot
2024-07-04 13:53:31 +09:00
committed by GitHub
parent f98d0673b8
commit 824e5a8b92
12 changed files with 61 additions and 22 deletions
+3
View File
@@ -3,6 +3,7 @@ package config
import (
"errors"
"fmt"
"io"
"os"
"go.uber.org/zap"
@@ -65,6 +66,8 @@ type GlobalOptions struct {
Interactive bool
// Args is the list of arguments to pass to the Helm binary.
Args string
// LogOutput is the writer to use for writing logs.
LogOutput io.Writer
}
// Logger returns the logger to use.