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 6da7447 commit ab478a3Copy full SHA for ab478a3
kubernetes/base/config/__init__.py
@@ -34,9 +34,7 @@ def load_config(**kwargs):
34
load_incluster_config functions.
35
"""
36
if "kube_config_path" in kwargs.keys():
37
- kube_config_path = kwargs.pop("kube_config_path", None)
38
- if "config_file" not in kwargs.keys():
39
- kwargs["config_file"] = kube_config_path
+ kwargs["config_file"] = kwargs.pop("kube_config_path", None)
40
load_kube_config(**kwargs)
41
elif exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
42
0 commit comments