Skip to content

Commit 4d5070f

Browse files
committed
Update load config
1 parent 5c2cbff commit 4d5070f

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,8 +33,10 @@ 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() or exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
36+
if "config_file" in kwargs or exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
3737
load_kube_config(**kwargs)
38+
elif "config_dict" in kwargs:
39+
load_kube_config_from_dict(**kwargs)
3840
else:
3941
print(
4042
"kube_config_path not provided and "

0 commit comments

Comments
 (0)