Skip to content

Commit

Permalink
controllers: propagate PersistentClient value
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco committed Mar 30, 2023
1 parent 6f85ca5 commit c93b3af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/controllers/helmrelease_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,7 @@ func (r *HelmReleaseReconciler) buildRESTClientGetter(ctx context.Context, hr v2
// When ServiceAccountName is empty, it will fall back to the configured default.
// If this is not configured either, this option will result in a no-op.
kube.WithImpersonate(hr.Spec.ServiceAccountName, hr.GetNamespace()),
kube.WithPersistent(hr.UsePersistentClient()),
}
if hr.Spec.KubeConfig != nil {
secretName := types.NamespacedName{
Expand Down

0 comments on commit c93b3af

Please sign in to comment.