Open
Description
Feature Description
We need to create a dynamic rest mapper so we can resolve KindToResource and ResourceToKind:
TL:DR:
- informers on APiBindings of the shard, CRDs + core types (hardcoded, don't need to watch)
- Fill inmemory mapper
- comply with upstream rest mapper interface:
- https://github.com/kubernetes/apimachinery/blob/master/pkg/api/meta/restmapper.go
type DefaultRESTMapper struct {
defaultGroupVersions []schema.GroupVersion
resourceToKind map[schema.GroupVersionResource]schema.GroupVersionKind
kindToPluralResource map[schema.GroupVersionKind]schema.GroupVersionResource
kindToScope map[schema.GroupVersionKind]RESTScope
singularToPlural map[schema.GroupVersionResource]schema.GroupVersionResource
pluralToSingular map[schema.GroupVersionResource]schema.GroupVersionResource
}
and https://github.com/kubernetes/apimachinery/blob/master/pkg/api/meta/interfaces.go#L113
Make it globally accessible so any controller can use it.
Proposed Solution
n/a
Alternative Solutions
No response
Want to contribute?
- I would like to work on this issue.
Additional Context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
New