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.
Currently when we use client-go per resource API, it requires to use pick specific gvk. For example:
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.