Skip to content

Generic k8s resource client #16

@hongchaodeng

Description

@hongchaodeng

Currently when we use client-go per resource API, it requires to use pick specific gvk. For example:

kubecli.CoreV1().Services(ns).Create(svc)

In the SDK, we can't pick a client for the GroupVersionKind (GVK) of objects output from the handler. Even though we can hardcode predefined k8s APIs, there are unknown custom resource GVKs.

This is actually the same problem that kubectl has -- how does kubectl know about custom resource?

Create this issue to collect discussion.

Metadata

Metadata

Assignees

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