Fix call to kube log

Signed-off-by: Benoit Tigeot <benoit.tigeot@lifen.fr>
pull/30708/head
Benoit Tigeot 6 months ago
parent 3a22df9731
commit ede73860c1
No known key found for this signature in database
GPG Key ID: 8E6D4FC8AEBDA62C

@ -20,6 +20,7 @@ import (
"bytes"
"fmt"
"io"
"log/slog"
"os"
"path"
"path/filepath"
@ -376,7 +377,7 @@ func (cfg *Configuration) recordRelease(r *release.Release) {
// Init initializes the action configuration
func (cfg *Configuration) Init(getter genericclioptions.RESTClientGetter, namespace, helmDriver string, log DebugLog) error {
kc := kube.New(getter)
kc.Log = log // TODO: Switch to slog compatible logger
kc.Log = kube.NewSlogAdapter(slog.Default())
lazyClient := &lazyClient{
namespace: namespace,

Loading…
Cancel
Save