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 ae43d0cCopy full SHA for ae43d0c
kubernetes/base/config/__init__.py
@@ -33,11 +33,13 @@ 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(
- "kube_config_path not provided and "
42
+ "config_file not provided and "
43
"default location ({0}) does not exist. "
44
"Using inCluster Config. "
45
"This might not work.".format(KUBE_CONFIG_DEFAULT_LOCATION))
0 commit comments