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