linkerd / linkerd2

Ultralight, security-first service mesh for Kubernetes. Main repo for Linkerd 2.x.
https://linkerd.io
Apache License 2.0
10.72k stars 1.28k forks source link

chore(policy): run status reconcilation at fixed interval #13384

Closed olix0r closed 3 days ago

olix0r commented 4 days ago

The status reconcilation loop runs differently than it seems is intended (based on the original DEBUG logging): reconcilation is triggered every time that the lease updates, even when there is no change in leadership. The code seems to assume that the lease only updates when leadership changes, but this is not the case.

This commit updates the status reconcilation loop to use a timer. The timer is reset when leadership is acquired so that reconcilation is triggered at a fixed interval.