Skip to content

Commit

Permalink
Merge pull request #501 from stuggi/fix_ceilo_reconcile_delete
Browse files Browse the repository at this point in the history
Fix running reconcileDelete on new instance
  • Loading branch information
openshift-merge-bot[bot] authored Oct 9, 2024
2 parents 0fd60c8 + fa9c222 commit ae8ae90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion controllers/ceilometer_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,12 @@ func (r *CeilometerReconciler) Reconcile(ctx context.Context, req ctrl.Request)
}

// If we're not deleting this and the service object doesn't have our finalizer, add it.
if !instance.DeletionTimestamp.IsZero() && controllerutil.AddFinalizer(instance, helper.GetFinalizer()) || isNewInstance {
if instance.DeletionTimestamp.IsZero() && controllerutil.AddFinalizer(instance, helper.GetFinalizer()) || isNewInstance {
return ctrl.Result{}, nil
}

// Handle service delete
if !instance.DeletionTimestamp.IsZero() {
return r.reconcileDelete(ctx, instance, helper)
}

Expand Down

0 comments on commit ae8ae90

Please sign in to comment.