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:
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",
|
||||
|
||||
Reference in new issue
Block a user