Skip to content

results of list API calls have no kind or apiversion set for items #745

Closed
@juliantaylor

Description

@juliantaylor

list calls do not set the kind of api version of the items:

# works
In [14]: client.list_service_for_all_namespaces().kind
Out[14]: 'ServiceList'

# works
In [18]: client.read_namespaced_service(namespace=namespace, name=name).kind
Out[18]: 'Service'

# wrong
In [16]: type(client.list_service_for_all_namespaces().items[0].kind)
Out[16]: NoneType

I suspect this might be caused by #744 but I am not sure how the de-serialization exactly works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions