From fe0b2371b8bb221105152dafbe7acb1820c64e5b Mon Sep 17 00:00:00 2001 From: Brian Mendoza Date: Tue, 27 Feb 2024 14:57:48 -0500 Subject: [PATCH] restore finalizer --- controller/linodeobjectstoragebucket_controller.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/controller/linodeobjectstoragebucket_controller.go b/controller/linodeobjectstoragebucket_controller.go index c5f7ea81f..7b7d251d7 100644 --- a/controller/linodeobjectstoragebucket_controller.go +++ b/controller/linodeobjectstoragebucket_controller.go @@ -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 }