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 5c2cbff commit 4d5070fCopy full SHA for 4d5070f
kubernetes/base/config/__init__.py
@@ -33,8 +33,10 @@ def load_config(**kwargs):
33
can be passed to either load_kube_config or
34
load_incluster_config functions.
35
"""
36
- if "kube_config_path" in kwargs.keys() or exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
+ if "config_file" in kwargs or exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
37
load_kube_config(**kwargs)
38
+ elif "config_dict" in kwargs:
39
+ load_kube_config_from_dict(**kwargs)
40
else:
41
print(
42
"kube_config_path not provided and "
0 commit comments