We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56eea10 + 6764e8d commit 2f546b9Copy full SHA for 2f546b9
kubernetes/base/config/__init__.py
@@ -33,7 +33,12 @@ 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() or exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
+ 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
41
+ elif exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
42
load_kube_config(**kwargs)
43
else:
44
print(
0 commit comments