mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-02-12 07:41:43 +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>