fix load_config unexpected keyword argument

This commit is contained in:
2022-12-12 06:41:57 +00:00
parent 5a96bbcbe2
commit b648cb918e

View File

@ -34,6 +34,7 @@ def load_config(**kwargs):
load_incluster_config functions.
"""
if "kube_config_path" in kwargs.keys() or exists(expanduser(KUBE_CONFIG_DEFAULT_LOCATION)):
kwargs["config_file"] = kwargs.pop("kube_config_path", None)
load_kube_config(**kwargs)
else:
print(