Skip to content
Snippets Groups Projects
Commit 03a67c17 authored by ale's avatar ale
Browse files

refactor masterelection to remove races; add tests

Master election code should be more robust now, this commit eliminates
the discrepancy between role and master info (previously it was possible
for these two to be non synchronized).

This commit also includes an in-memory etcd mock, which implements
enough of the etcd interface to test the masterelection code.
parent db305e75
Branches
Tags
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment