@@ -81,7 +81,7 @@ func (u removeProcessGroups) reconcile(
8181 }
8282
8383 coordinators := fdbstatus .GetCoordinatorsFromStatus (status )
84- allExcluded , newExclusions , processGroupsToRemove := r .getProcessGroupsToRemove (
84+ allExcluded , _ , processGroupsToRemove := r .getProcessGroupsToRemove (
8585 logger ,
8686 cluster ,
8787 remainingMap ,
@@ -99,14 +99,6 @@ func (u removeProcessGroups) reconcile(
9999 return nil
100100 }
101101
102- // Update the cluster to reflect the new exclusions in our status
103- if newExclusions {
104- err = r .updateOrApply (ctx , cluster )
105- if err != nil {
106- return & requeue {curError : err }
107- }
108- }
109-
110102 // Ensure we only remove process groups that are not blocked to be removed by the buggify config.
111103 processGroupsToRemove = buggify .FilterBlockedRemovals (cluster , processGroupsToRemove )
112104 // If all of the process groups are filtered out we can stop doing the next steps.
@@ -352,7 +344,7 @@ func confirmRemoval(
352344}
353345
354346func includeProcessGroup (
355- ctx context.Context ,
347+ _ context.Context ,
356348 logger logr.Logger ,
357349 r * FoundationDBClusterReconciler ,
358350 status * fdbv1beta2.FoundationDBStatus ,
@@ -366,11 +358,9 @@ func includeProcessGroup(
366358 return err
367359 }
368360
369- // Update here for ready inclusion --> Check here
370361 var readyForInclusion map [fdbv1beta2.ProcessGroupID ]time.Time
371362 readyForInclusionUpdates := map [fdbv1beta2.ProcessGroupID ]fdbv1beta2.UpdateAction {}
372363 if cluster .GetSynchronizationMode () == fdbv1beta2 .SynchronizationModeGlobal {
373- var err error
374364 readyForInclusion , err = adminClient .GetReadyForInclusion (cluster .Spec .ProcessGroupIDPrefix )
375365 if err != nil {
376366 return err
@@ -398,7 +388,6 @@ func includeProcessGroup(
398388 // We can update the process groups at this stage, as no other processes must be included.
399389 if len (cluster .Status .ProcessGroups ) != len (newProcessGroups ) && len (newProcessGroups ) > 0 {
400390 cluster .Status .ProcessGroups = newProcessGroups
401- return r .updateOrApply (ctx , cluster )
402391 }
403392
404393 return nil
@@ -467,7 +456,7 @@ func includeProcessGroup(
467456 // Update the process group list and remove all removed and included process groups.
468457 cluster .Status .ProcessGroups = newProcessGroups
469458
470- return r . updateOrApply ( ctx , cluster )
459+ return nil
471460}
472461
473462// filterAddressesToInclude will remove all addresses that are part of the fdbProcessesToInclude slice but are not excluded in FDB itself.
0 commit comments