Skip to content

Commit b6b2e09

Browse files
committed
Fix kubernetes-client#1893 Update load config
1 parent 2f546b9 commit b6b2e09

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
@@ -40,9 +40,11 @@ def load_config(**kwargs):
4040
load_kube_config(**kwargs)
4141
elif exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
4242
load_kube_config(**kwargs)
43+
elif "config_dict" in kwargs:
44+
load_kube_config_from_dict(**kwargs)
4345
else:
4446
print(
45-
"kube_config_path not provided and "
47+
"config_file not provided and "
4648
"default location ({0}) does not exist. "
4749
"Using inCluster Config. "
4850
"This might not work.".format(KUBE_CONFIG_DEFAULT_LOCATION))

0 commit comments

Comments
 (0)