We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab478a3 commit 6764e8dCopy full SHA for 6764e8d
kubernetes/base/config/__init__.py
@@ -33,7 +33,9 @@ def load_config(**kwargs):
33
can be passed to either load_kube_config or
34
load_incluster_config functions.
35
"""
36
- if "kube_config_path" in kwargs.keys():
+ if "config_file" in kwargs.keys():
37
+ load_kube_config(**kwargs)
38
+ elif "kube_config_path" in kwargs.keys():
39
kwargs["config_file"] = kwargs.pop("kube_config_path", None)
40
load_kube_config(**kwargs)
41
elif exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
0 commit comments