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 0c662bb commit 10db259Copy full SHA for 10db259
config/__init__.py
@@ -24,6 +24,9 @@ def load_config(**kwargs):
24
Wrapper function to load the kube_config.
25
It will initially try to load_kube_config from provided path, then check if the KUBE_CONFIG_DEFAULT_LOCATION exists
26
If neither exists- it will fall back to load_incluster_config and inform the user accordingly.
27
+
28
+ :param kwargs: A combination of all possible kwargs that can be passed to either load_kube_config or
29
+ load_incluster_config functions.
30
"""
31
if "kube_config_path" in kwargs.keys() or os.path.exists(KUBE_CONFIG_DEFAULT_LOCATION):
32
load_kube_config(**kwargs)
0 commit comments