Skip to content

Commit

Permalink
Merge pull request #647 from mplsgrant/2024-10-check-for-kube-folder
Browse files Browse the repository at this point in the history
users: check for ~/.kube and create if needed
  • Loading branch information
pinheadmz authored Oct 10, 2024
2 parents e12dc8e + 2713057 commit cccf11b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/warnet/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def auth(auth_config):

is_first_config = False
if not os.path.exists(KUBECONFIG):
os.makedirs(os.path.dirname(KUBECONFIG), exist_ok=True)
try:
write_kubeconfig(auth_config, KUBECONFIG)
is_first_config = True
Expand Down

0 comments on commit cccf11b

Please sign in to comment.