Skip to content

Commit 4eb5438

Browse files
ensure rollout completed condition is setup for rolled out hrp
Signed-off-by: Chaitanya Kolluru <[email protected]>
1 parent daeeb40 commit 4eb5438

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

controllers/helmchartproxy/helmchartproxy_controller.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ func (r *HelmChartProxyReconciler) reconcileNormal(ctx context.Context, helmChar
318318
// In cases where the count of remaining HelmReleaseProxies to be rolled
319319
// out is less than rollout step size.
320320
return nil
321+
} else {
322+
// RolloutStepSize is defined and all HelmReleaseProxies have been rolled out.
323+
conditions.MarkTrue(helmChartProxy, addonsv1alpha1.HelmReleaseProxiesRolloutCompletedCondition)
321324
}
322-
// RolloutStepSize is defined and all HelmReleaseProxies have been rolled out.
323-
conditions.MarkTrue(helmChartProxy, addonsv1alpha1.HelmReleaseProxiesRolloutCompletedCondition)
324325
} else {
325326
// RolloutStepSize is undefined. Set HelmReleaseProxiesRolloutCompletedCondition to True with reason.
326327
conditions.MarkTrueWithNegativePolarity(

0 commit comments

Comments
 (0)