Skip to content

Commit 5ee1d0c

Browse files
author
Per Goncalves da Silva
committed
Remove condition setting on finalizer removal
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 8de1c8e commit 5ee1d0c

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

internal/operator-controller/controllers/clusterextensionrevision_controller.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,6 @@ func (c *ClusterExtensionRevisionReconciler) reconcile(ctx context.Context, rev
169169
}
170170

171171
if err := c.removeFinalizer(ctx, rev, clusterExtensionRevisionTeardownFinalizer); err != nil {
172-
meta.SetStatusCondition(&rev.Status.Conditions, metav1.Condition{
173-
Type: ocv1.ClusterExtensionRevisionTypeAvailable,
174-
Status: metav1.ConditionFalse,
175-
Reason: ocv1.ClusterExtensionRevisionReasonReconcileFailure,
176-
Message: err.Error(),
177-
ObservedGeneration: rev.Generation,
178-
})
179172
return ctrl.Result{}, fmt.Errorf("error removing teardown finalizer: %v", err)
180173
}
181174
return ctrl.Result{}, nil

0 commit comments

Comments
 (0)