Skip to content

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

3 participants