Skip to content

Commit 3d25e65

Browse files
authored
Merge pull request #374 from 0xff-dev/fix-helm-install
fix: unsupported namespace setting during creation
2 parents 0c39546 + d210a13 commit 3d25e65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/helm/common.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ func NewHelmWrapper(getter genericclioptions.RESTClientGetter, namespace string,
8888
}); err != nil {
8989
return nil, err
9090
}
91+
settings.SetNamespace(namespace)
9192
buf := new(bytes.Buffer)
9293
registryClient, err := registry.NewClient(
9394
registry.ClientOptDebug(settings.Debug),
@@ -234,7 +235,7 @@ func (h *HelmWrapper) Install(ctx context.Context, logger logr.Logger, client *a
234235
}
235236
}
236237

237-
// client.Namespace = settings.Namespace()
238+
client.Namespace = settings.Namespace()
238239

239240
// Create context and prepare the handle of SIGTERM
240241
// ctx := context.Background()

0 commit comments

Comments
 (0)