mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-07 07:54:03 +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
|
# pylint: disable=import-outside-toplevel
|
||||||
from kubernetes import client, config
|
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!
|
# found the kubeconfig file, let's load it!
|
||||||
config.load_kube_config()
|
config.load_kube_config()
|
||||||
elif (
|
elif (
|
||||||
|
Loading…
Reference in New Issue
Block a user