diff --git a/src/warnet/users.py b/src/warnet/users.py index d061f08a9..52a2c1080 100644 --- a/src/warnet/users.py +++ b/src/warnet/users.py @@ -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