tomplus / kubernetes_asyncio

Python asynchronous client library for Kubernetes http://kubernetes.io/
Apache License 2.0
365 stars 71 forks source link

load_incluster_config() is not async #339

Open Elektordi opened 4 days ago

Elektordi commented 4 days ago

Is there any reason of the kubernetes_asyncio.config.load_incluster_config function to not be async? As far as I understand, it should by async, and I may be a mistake to be one of the only non-async function of the whole lib. Can you confirm if it is intended or not? Thanks.

tomplus commented 4 days ago

As long as there are no async calls (await) this function doesn't have to be async.