mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-05 23:20:40 +00:00
parent
2dae85807f
commit
b2067ce1f6
1
changelog.d/20230616_113533_regis.md
Normal file
1
changelog.d/20230616_113533_regis.md
Normal file
@ -0,0 +1 @@
|
||||
- [Bugfix] Fix loading default Kubernetes config. (by @regisb)
|
@ -27,7 +27,9 @@ class K8sClients:
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from kubernetes import client, config
|
||||
|
||||
if os.path.exists(config.kube_config.KUBE_CONFIG_DEFAULT_LOCATION):
|
||||
if os.path.exists(
|
||||
os.path.expanduser(config.kube_config.KUBE_CONFIG_DEFAULT_LOCATION)
|
||||
):
|
||||
# found the kubeconfig file, let's load it!
|
||||
config.load_kube_config()
|
||||
elif (
|
||||
|
Loading…
Reference in New Issue
Block a user