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

fix: Record GVK in APIResourceMeta #284

Merged
merged 3 commits into from
Sep 13, 2022
Merged

fix: Record GVK in APIResourceMeta #284

merged 3 commits into from
Sep 13, 2022

Conversation

Fei-Guo
Copy link
Contributor

@Fei-Guo Fei-Guo commented Sep 13, 2022

Fixes #280

This change adds GVK information into APIResourceMeta so that it becomes the single source of true for checking the
validity of an input CRP resource. This change works around a problem introduced by client-go such that it adds an additional lowercase kind into RestMapper for some reason which confuses the webhook (allowing the wrong lowercase Kind).

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Manual e2e

@Fei-Guo Fei-Guo changed the title Record GVK in APIResourceMeta fix: Record GVK in APIResourceMeta Sep 13, 2022
@ryanzhang-oss ryanzhang-oss merged commit c4f8c87 into main Sep 13, 2022
@Fei-Guo Fei-Guo deleted the fguo-dev1 branch September 20, 2022 06:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] handle k8s lowecase Kind properly
2 participants