Skip to content

Allow custom subclasses of APIObject for Selector.object() and Selector.objects() #82

@pehala

Description

@pehala

Overview

It would be great if Selector.objects() and Selector.object() would allow to specifiy which class it should create. This can be useful when you have custom class on top of APIObject for helping with managing said resource.

Example

oc.selector("pods").objects(class=DeploymentConfig) ~> List[DeploymentConfig]
oc.selector("pods").object(class=DeploymentConfig) ~> DeploymentConfig
oc.selector("pods").object() ~> APIObject

I think I could implement this if you would like this to be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions