Skip to content

Commit

Permalink
restore finalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Mendoza committed Feb 27, 2024
1 parent 36f51dd commit fe0b237
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controller/linodeobjectstoragebucket_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ func (r *LinodeObjectStorageBucketReconciler) reconcile(
return res, r.reconcileDelete(ctx, logger, bucketScope)
}

// if err := bucketScope.AddFinalizer(ctx); err != nil {
// return res, err
// }
if err := bucketScope.AddFinalizer(ctx); err != nil {
return res, err
}

// Created
if bucketScope.Object.Status.LastKeyGeneration == nil {
if bucketScope.Object.Status.KeySecretName == nil {
if err := r.reconcileCreate(ctx, logger, bucketScope); err != nil {
return res, err
}
Expand Down

0 comments on commit fe0b237

Please sign in to comment.