Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: dynamic rest mapper #3293

Open
1 task
mjudeikis opened this issue Feb 11, 2025 · 3 comments · May be fixed by #3316
Open
1 task

feature: dynamic rest mapper #3293

mjudeikis opened this issue Feb 11, 2025 · 3 comments · May be fixed by #3316
Assignees
Labels
area/core Issues or PRs related to core changes good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.

Comments

@mjudeikis
Copy link
Contributor

Feature Description

We need to create a dynamic rest mapper so we can resolve KindToResource and ResourceToKind:

TL:DR:

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

@mjudeikis mjudeikis added kind/feature Categorizes issue or PR as related to a new feature. area/core Issues or PRs related to core changes labels Feb 11, 2025
@mjudeikis
Copy link
Contributor Author

Should be very similar to front-proxy indexer we have for logicalcluster, workspaces,mounts

@mjudeikis mjudeikis added the good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. label Feb 11, 2025
@kcp-ci-bot kcp-ci-bot added this to kcp Feb 11, 2025
@github-project-automation github-project-automation bot moved this to New in kcp Feb 11, 2025
@gman0
Copy link
Contributor

gman0 commented Feb 24, 2025

Taking!

@gman0
Copy link
Contributor

gman0 commented Feb 24, 2025

/assign

@gman0 gman0 linked a pull request Feb 28, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issues or PRs related to core changes good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.
Projects
Status: New
Development

Successfully merging a pull request may close this issue.

2 participants