Skip to content

Interest in generic object API class #375

@ddgenome

Description

@ddgenome

I've created a generic Kubernetes object API class that allows you to pass any valid Kubernetes spec object to the action, e.g., create/delete/list/patch, that you want to perform.

https://github.com/atomist/sdm-pack-k8s/blob/43f41c251527f42fd9859453c582ee878af1bb96/lib/kubernetes/api.ts

This allows you to more easily perform tasks equivalent to kubectl create|apply|delete using the SDK.

You can see how it can be used to mimic the functionality of kubectl apply here:

https://github.com/atomist/sdm-pack-k8s/blob/43f41c251527f42fd9859453c582ee878af1bb96/lib/kubernetes/apply.ts

Is there any interest in incorporating this functionality into this repo's official Kubernetes JavaScript/Node.js client?

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