commit | ae56b6a6a52ea7a467f1d456dc927b7493b64920 | [log] [tgz] |
---|---|---|
author | Sergiusz Bazanski <q3k@q3k.org> | Sun Jan 13 21:39:16 2019 +0100 |
committer | Sergiusz Bazanski <q3k@q3k.org> | Sun Jan 13 21:39:16 2019 +0100 |
tree | 3280101bbefc9a6b430b3c79ec925027717bf37e | |
parent | cd2374018548850c1cf19bf7180c02013c2468ec [diff] [blame] |
clustercfg: create .kubectl
diff --git a/tools/clustercfg.py b/tools/clustercfg.py index 332d6e6..be3fea7 100644 --- a/tools/clustercfg.py +++ b/tools/clustercfg.py
@@ -256,6 +256,10 @@ local_cert = os.path.join(local_root, '.kubectl/admin.crt') local_csr = os.path.join(local_root, '.kubectl/admin.csr') + kubectl = os.path.join(local_root, '.kubectl') + if not os.path.exists(kubectl): + os.mkdir(kubectl) + generate_cert = False if not os.path.exists(local_key): subprocess.check_call([