mirror of https://gerrit.hackerspace.pl/hscloud
clustercfg: create .kubectl
parent
cd23740185
commit
ae56b6a6a5
|
@ -1 +1 @@
|
|||
80F13FCE5DBBF72E
|
||||
80F13FCE5DBBF72F
|
||||
|
|
|
@ -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([
|
||||
|
|
Loading…
Reference in New Issue