mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-03-27 13:57:18 +00:00
Even though a client may hold the leader election lock in the Kube lease API, that does not mean it has had a chance to update its internal state to reflect that. Thus we retry the checks in checkOnlyLeaderCanWrite a few times to allow the client to catch up. Signed-off-by: Monis Khan <mok@vmware.com>