From 532382a082e937f11deabe9604d09a8c33650020 Mon Sep 17 00:00:00 2001 From: timflannagan Date: Thu, 8 Sep 2022 21:24:22 -0400 Subject: [PATCH] controllers: Set Progressing=False during success states Signed-off-by: timflannagan --- controllers/aggregated_clusteroperator_controller.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/aggregated_clusteroperator_controller.go b/controllers/aggregated_clusteroperator_controller.go index e63531f8..f0eb2464 100644 --- a/controllers/aggregated_clusteroperator_controller.go +++ b/controllers/aggregated_clusteroperator_controller.go @@ -78,7 +78,7 @@ func (a *AggregatedClusterOperatorReconciler) Reconcile(ctx context.Context, req if len(poList.Items) == 0 { // No POs on cluster, everything is fine coBuilder.WithAvailable(openshiftconfigv1.ConditionTrue, "No POs are present in the cluster", "NoPOsFound") - coBuilder.WithProgressing(openshiftconfigv1.ConditionTrue, "No POs are present in the cluster") + coBuilder.WithProgressing(openshiftconfigv1.ConditionFalse, "No POs are present in the cluster") return ctrl.Result{}, nil } @@ -90,6 +90,7 @@ func (a *AggregatedClusterOperatorReconciler) Reconcile(ctx context.Context, req return ctrl.Result{}, nil } coBuilder.WithAvailable(openshiftconfigv1.ConditionTrue, "All POs in a successful state", "POsHealthy") + coBuilder.WithProgressing(openshiftconfigv1.ConditionFalse, "All POs in a successful state") return ctrl.Result{}, nil }