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() {
1011
1011
1012
1012
func (lbc * LoadBalancerController ) sync (task task ) {
1013
1013
if lbc .isNginxReady && lbc .syncQueue .Len () > 1 && ! lbc .batchSyncEnabled {
1014
- lbc .configurator .DisableReloads ()
1015
- lbc .batchSyncEnabled = true
1016
-
1017
1014
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
+ }
1018
1021
}
1019
1022
nl .Debugf (lbc .Logger , "Syncing %v" , task .Key )
1020
1023
if lbc .spiffeCertFetcher != nil {
1021
1024
lbc .syncLock .Lock ()
1022
1025
defer lbc .syncLock .Unlock ()
1023
1026
}
1024
- if lbc .batchSyncEnabled && task .Kind != endpointslice {
1025
- nl .Debug (lbc .Logger , "Task is not endpointslice - enabling batch reload" )
1026
- lbc .enableBatchReload = true
1027
- }
1028
1027
switch task .Kind {
1029
1028
case ingress :
1030
1029
lbc .syncIngress (task )
You can’t perform that action at this time.
0 commit comments