File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -916,6 +916,7 @@ func (lbc *LoadBalancerController) sync(task task) {
916916 defer lbc .syncLock .Unlock ()
917917 }
918918 if lbc .batchSyncEnabled && task .Kind != endpointslice {
919+ glog .V (3 ).Infof ("Task is not endpointslice - enabling batch reload" )
919920 lbc .enableBatchReload = true
920921 }
921922 switch task .Kind {
@@ -931,6 +932,7 @@ func (lbc *LoadBalancerController) sync(task task) {
931932 case endpointslice :
932933 resourcesFound := lbc .syncEndpointSlices (task )
933934 if lbc .batchSyncEnabled && resourcesFound {
935+ glog .V (3 ).Infof ("Endpointslice %v is referenced - enabling batch reload" , task .Key )
934936 lbc .enableBatchReload = true
935937 }
936938 case secret :
@@ -990,7 +992,8 @@ func (lbc *LoadBalancerController) sync(task task) {
990992 }
991993 }
992994
993- glog .V (3 ).Infof ("Batch sync completed" )
995+ lbc .enableBatchReload = false
996+ glog .V (3 ).Infof ("Batch sync completed - disabling batch reload" )
994997 }
995998}
996999
You can’t perform that action at this time.
0 commit comments