Skip to content

BYO-Resource structs #7

@coryodaniel

Description

@coryodaniel

Support for deserializing k8s responses into custom structs instead of returning maps.

Add a protocol (K8s.Resource?) with serialize/deserialize functions to be implemented by enduser resource module.

K8s.Client.run(.... into: MyDeploymentModule)

How to handle list responses? It would be burdensome to make someone define a list for each type. List responses are pretty normalized. Could maybe include a single K8s.ResourceList module that defines a kind and items struct keys.

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