forked from moby/libnetwork
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure Directories are watchable with etcd
etcd v2.0+ with API v2 cannot watch on a regular key, we must ensure that the initial steps involve creating a 'key' under a directory at 'path'. This is a workaround to recursively create the path and make sure that 'path' is considered as a watchable directory. These steps are necessary unless 'libkv' includes and supports the new etcd API v3 which removes the directory/key distinction to allow for a better abstraction. Fixes: moby#392 See: docker/libkv#20 Signed-off-by: Alexandre Beslic <abronan@docker.com>
- Loading branch information
Showing
1 changed file
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters