File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1011,20 +1011,19 @@ func (lbc *LoadBalancerController) preSyncSecrets() {
10111011
10121012func (lbc * LoadBalancerController ) sync (task task ) {
10131013 if lbc .isNginxReady && lbc .syncQueue .Len () > 1 && ! lbc .batchSyncEnabled {
1014- lbc .configurator .DisableReloads ()
1015- lbc .batchSyncEnabled = true
1016-
10171014 nl .Debugf (lbc .Logger , "Batch processing %v items" , lbc .syncQueue .Len ())
1015+ if task .Kind != endpointslice {
1016+ nl .Debug (lbc .Logger , "Task is not endpointslice - enabling batch reload" )
1017+ lbc .configurator .DisableReloads ()
1018+ lbc .batchSyncEnabled = true
1019+ lbc .enableBatchReload = true
1020+ }
10181021 }
10191022 nl .Debugf (lbc .Logger , "Syncing %v" , task .Key )
10201023 if lbc .spiffeCertFetcher != nil {
10211024 lbc .syncLock .Lock ()
10221025 defer lbc .syncLock .Unlock ()
10231026 }
1024- if lbc .batchSyncEnabled && task .Kind != endpointslice {
1025- nl .Debug (lbc .Logger , "Task is not endpointslice - enabling batch reload" )
1026- lbc .enableBatchReload = true
1027- }
10281027 switch task .Kind {
10291028 case ingress :
10301029 lbc .syncIngress (task )
You can’t perform that action at this time.
0 commit comments