Open
Description
What would you like to be added?
there isn't any validation in the admission of a ValidatingWebhookConfiguration that checks that rule.APIGroups only contains valid group names.
But for a CRD, the group is validated to be a DNS1123Subdomain, so perhaps we can leverage that validation, combined with validation for the built-in groups?
(thank you JoelSpeed for providing the details)
Some days ago it took me some time to find the root cause why my new webhook was not called.
Would it make sense to add validation there, so that typos (like "mygroup/v1beta1" instead of "mygroup") get detected?
Why is this needed?
This is needed so that invalid group names create an error.
Otherwise, the validation web hook might not be called and invalid resources can get created.