-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve etcd comapabitity of multiple versions (#42)
* add some etcd versions to test comability * skip auth header tests for etcd<v3.3.0 * update docs
- Loading branch information
1 parent
04253c6
commit 01034a4
Showing
10 changed files
with
115 additions
and
47 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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
import logging | ||
import os | ||
|
||
from six.moves.urllib_parse import urlparse | ||
|
||
logging.basicConfig(format='%(name)s %(levelname)s - %(message)s') | ||
log = logging.getLogger() | ||
log.setLevel(logging.DEBUG) | ||
handler = logging.StreamHandler() | ||
log.addHandler(handler) | ||
|
||
ETCD_ENDPOINT = os.getenv('ETCD_ENDPOINT') or 'http://localhost:2379' | ||
_url = urlparse(ETCD_ENDPOINT) | ||
|
||
protocol = _url.scheme | ||
|
||
host, port = _url.netloc.split(':') | ||
|
||
ETCD_VER = os.getenv('ETCD_VER') or 'v3.3' | ||
ETCD_VER = os.getenv('ETCD_VER') or 'v3.3.0' | ||
|
||
ETCD_IMG = 'quay.io/coreos/etcd:' + ETCD_VER |
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
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
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