core: skip reconcile when adding the finalizers

When finalizers are added to the CRs, a follow-up reconcile
will be triggered due to the increased generation on the CR.
Therefore, abort the initial reconcile when adding the finalizer,
and allow the follow-up reconcile to complete the configuration.

Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
This commit is contained in:
Travis Nielsen committed 2025-04-08 13:42:58 -06:00
1 parent 916c0ab50e
commit f7fb1bc0f2
25 files changed
+118 -44

No files matched your search

@@ -71,8 +71,9 @@ func TestCephBucketTopicController(t *testing.T) {
bucketTopic := &cephv1.CephBucketTopic{
ObjectMeta: metav1.ObjectMeta{
Name: name,
Namespace: namespace,
Name: name,
Namespace: namespace,
Finalizers: []string{"cephbuckettopic.ceph.rook.io"},
},
TypeMeta: metav1.TypeMeta{
Kind: "CephBucketTopic",