Add options construct to EndpointSlice NewReconciler for the new trafficDistributionEnabled field

This commit is contained in:
Gaurav Ghildiyal
2024-03-04 14:07:45 -08:00
parent 606cae9b47
commit ec6fd2befa
3 changed files with 25 additions and 13 deletions

View File

@@ -173,9 +173,9 @@ func NewController(ctx context.Context, podInformer coreinformers.PodInformer,
c.maxEndpointsPerSlice,
c.endpointSliceTracker,
c.topologyCache,
utilfeature.DefaultFeatureGate.Enabled(features.ServiceTrafficDistribution),
c.eventRecorder,
controllerName,
endpointslicerec.WithTrafficDistributionEnabled(utilfeature.DefaultFeatureGate.Enabled(features.ServiceTrafficDistribution)),
)
return c