mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00

Kubernetes uses WithRequireLeader to modify the context passed to the Watch() and RequestProgress() calls in order to ensure that a leader is present in the cluster before serving the request. This commit mimics that behaviour in the Kubernetes traffic. Signed-off-by: Madhav Jivrajani <madhav.jiv@gmail.com>