Skip to content

thirdparty support for kubernetes_asyncio? #806

Closed
@caffeinism

Description

@caffeinism

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.

if any(C.__module__.startswith('kubernetes.client.models.') for C in subcls.__mro__):

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions