clustercfg: create .kubectl

changes/03/3/1
q3k 2019-01-13 21:39:16 +01:00
parent cd23740185
commit ae56b6a6a5
2 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
80F13FCE5DBBF72E
80F13FCE5DBBF72F

View File

@ -256,6 +256,10 @@ def admincreds(args):
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([