@@ -35,7 +35,7 @@ type addProcessGroups struct{}
3535
3636// reconcile runs the reconciler's work.
3737func (a addProcessGroups ) reconcile (
38- ctx context.Context ,
38+ _ context.Context ,
3939 r * FoundationDBClusterReconciler ,
4040 cluster * fdbv1beta2.FoundationDBCluster ,
4141 status * fdbv1beta2.FoundationDBStatus ,
@@ -64,7 +64,6 @@ func (a addProcessGroups) reconcile(
6464 logger .Error (err , "Error getting exclusion list" )
6565 }
6666
67- hasNewProcessGroups := false
6867 for _ , processClass := range fdbv1beta2 .ProcessClasses {
6968 desiredCount := desiredCounts [processClass ]
7069 if desiredCount < 0 {
@@ -80,7 +79,6 @@ func (a addProcessGroups) reconcile(
8079 processGroupIDs [processClass ] = map [int ]bool {}
8180 }
8281
83- hasNewProcessGroups = true
8482 logger .Info (
8583 "Adding new Process Groups" ,
8684 "processClass" ,
@@ -120,13 +118,6 @@ func (a addProcessGroups) reconcile(
120118 }
121119 }
122120
123- if hasNewProcessGroups {
124- err = r .updateOrApply (ctx , cluster )
125- if err != nil {
126- return & requeue {curError : err }
127- }
128- }
129-
130121 if getLocalitiesErr != nil {
131122 return & requeue {curError : getLocalitiesErr , delayedRequeue : true }
132123 }
0 commit comments