We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b93a4e5 commit 9565638Copy full SHA for 9565638
kubernetes_asyncio/config/kube_config.py
@@ -20,6 +20,7 @@
20
import json
21
import logging
22
import os
23
+import pathlib
24
import platform
25
import tempfile
26
@@ -34,7 +35,7 @@
34
35
from .openid import OpenIDRequestor
36
37
EXPIRY_SKEW_PREVENTION_DELAY = datetime.timedelta(minutes=5)
-KUBE_CONFIG_DEFAULT_LOCATION = os.environ.get('KUBECONFIG', '~/.kube/config')
38
+KUBE_CONFIG_DEFAULT_LOCATION = os.environ.get('KUBECONFIG', (pathlib.Path.home() / '.kube/config').as_posix())
39
ENV_KUBECONFIG_PATH_SEPARATOR = ';' if platform.system() == 'Windows' else ':'
40
PROVIDER_TYPE_OIDC = 'oidc'
41
_temp_files = {}
0 commit comments