Closed
Description
Problem
I am using the kubernetes_asyncio library to asynchronously call to Kubernetes APIs.
However, kopf.adopt(naturally harmonize_naming, adjust_namespace and label too) supports kubernetes.client.model but not kubernetes_asyncio.client.model.
kopf/kopf/_cogs/helpers/thirdparty.py
Line 36 in aee09c8
Since kubernetes_asyncio follows the model of the kubernetes python sdk as it is, there is no problem with compatibility.
Proposal
I wish this project also supports kubernetes_asyncio.
Code
if any(C.__module__.startswith('kubernetes.client.models.') for C in subcls.__mro__):
return True
It would be nice to change that part to
if any(C.__module__.startswith('kubernetes.client.models.') for C in subcls.__mro__):
return True
if any(C.__module__.startswith('kubernetes_asyncio.client.models.') for C in subcls.__mro__):
return True
Additional information
No response