Skip to content

Commit d9b2b94

Browse files
committed
uncomment
1 parent 38c82f7 commit d9b2b94

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

components/operator/internal/state/delete.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@ func sFnDeleteResources(ctx context.Context, r *reconciler, s *systemState) (sta
2626
if err := chart.CheckCRDOrphanResources(s.chartConfig); err != nil {
2727
// stop state machine with a warning and requeue reconciliation in 1min
2828
// warning state indicates that user intervention would fix it. Its not reconciliation error.
29-
// TODO: uncomment
30-
// s.setState(v1alpha1.StateWarning)
31-
// s.instance.UpdateConditionFalse(
32-
// v1alpha1.ConditionTypeDeleted,
33-
// v1alpha1.ConditionReasonDeletionErr,
34-
// err,
35-
// )
36-
// return stopWithEventualError(err)
29+
s.setState(v1alpha1.StateWarning)
30+
s.instance.UpdateConditionFalse(
31+
v1alpha1.ConditionTypeDeleted,
32+
v1alpha1.ConditionReasonDeletionErr,
33+
err,
34+
)
35+
return stopWithEventualError(err)
3736
}
3837

3938
return deleteResourcesWithFilter(ctx, r, s)

0 commit comments

Comments
 (0)