Skip to content

Commit

Permalink
Tidy up fetcd.py:
Browse files Browse the repository at this point in the history
* FelixEtcdWatcher no longer an EtcdWatcher subclass.
* Move status cleanup to the StatusReporter.
* Remove ResyncRequired exception.
  • Loading branch information
Shaun Crampton committed Oct 27, 2015
1 parent 7c0345c commit 2d51fed
Show file tree
Hide file tree
Showing 3 changed files with 139 additions and 147 deletions.
12 changes: 12 additions & 0 deletions calico/etcddriver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,18 @@

FLUSH_THRESHOLD = 200

# TODO: trigger immediate resync if these are deleted?
# RESYNC_KEYS = [
# VERSION_DIR,
# POLICY_DIR,
# PROFILE_DIR,
# CONFIG_DIR,
# HOST_DIR,
# IPAM_DIR,
# IPAM_V4_DIR,
# POOL_V4_DIR,
# ]


class EtcdDriver(object):
def __init__(self, felix_sck):
Expand Down
Loading

0 comments on commit 2d51fed

Please sign in to comment.