[Bug]: The batchSyncEnabled
flag is not reverted back to false
when batch processing ends
#6445
Closed
1 task done
Milestone
Version
3.6.2
What Kubernetes platforms are you running on?
GKE Google Cloud
What happened?
One of the goals in PR #4371 was to avoid unnecessary nginx reloads in batch processing when the tasks in the queue are of kind
endpointslice
and are not referenced in any of the watched resources.This is done via the
batchSyncEnabled
flag in thecontroller.sync(task)
function. The flag controls whether an nginx reload will be done at the end of a batch processing event.The flag starts as
false
and is set totrue
in two scenarios (synced task is not anendpointslice
, or synced task is anendpointslice
but it's not referenced in other watched resources). Unfortunately, the flag is never reverted back tofalse
once it's set totrue
. This means that any batch process from that point on will trigger an nginx reload.This results in undesired nginx reloads in environments with the following conditions:
batchSyncEnabled
totrue
.endpointslice
resources.In these environments, one can observe one or more of these behaviors:
Steps to reproduce
endpointslice
objects that also change frequently (*)(*) Operators that implement
endpointslicemirroring-controller.k8s.io
, like https://github.com/zalando/postgres-operator, will help with that.Expected behaviour
No response
Kubectl Describe output
No response
Log output
No response
Contributing Guidelines
The text was updated successfully, but these errors were encountered: