Skip to content

Commit 6764e8d

Browse files
committed
keep config_file value
1 parent ab478a3 commit 6764e8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kubernetes/base/config/__init__.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ def load_config(**kwargs):
3333
can be passed to either load_kube_config or
3434
load_incluster_config functions.
3535
"""
36-
if "kube_config_path" in kwargs.keys():
36+
if "config_file" in kwargs.keys():
37+
load_kube_config(**kwargs)
38+
elif "kube_config_path" in kwargs.keys():
3739
kwargs["config_file"] = kwargs.pop("kube_config_path", None)
3840
load_kube_config(**kwargs)
3941
elif exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):

0 commit comments

Comments
 (0)