diff --git a/internal/helmdeployer/deployer.go b/internal/helmdeployer/deployer.go index f3f2505ee2..2b46f1fff5 100644 --- a/internal/helmdeployer/deployer.go +++ b/internal/helmdeployer/deployer.go @@ -82,7 +82,7 @@ func (h *Helm) Setup(ctx context.Context, client client.Client, getter genericcl h.client = client h.getter = getter - cfg, err := h.createCfg(ctx, "") + cfg, err := h.createCfg(ctx, h.defaultNamespace) if err != nil { return err } @@ -127,10 +127,6 @@ func (h *Helm) getCfg(ctx context.Context, namespace, serviceAccountName string) getter = h.getter ) - if h.useGlobalCfg { - return h.globalCfg, nil - } - serviceAccountNamespace, serviceAccountName, err := h.getServiceAccount(ctx, serviceAccountName) if err != nil { return cfg, err