Skip to content

Commit 5de2c10

Browse files
blackstormyabea
authored andcommitted
keep config_file value
1 parent f865d60 commit 5de2c10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kubernetes/base/config/__init__.py

Lines changed: 3 additions & 1 deletion
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)