Closed czeslavo closed 9 months ago
Could we remove the GWAPI configuration for our webhook altogether? Between @pmalek's findings that our validations were mostly (all?) checks we added early on but probably shouldn't have, the expectation that most users will be on v1 (with built-in CEL validation), and the availability of the upstream GWAPI webhook for older versions, I think we can probably remove ours.
https://github.com/Kong/kubernetes-ingress-controller/blob/87196d183f8e0093899de32dc6ab97be852bb471/internal/admission/validator.go#L367-L444 is still in KIC main but I thought the plan was to remove all of it.
To be fair I do not have enough context on the removal of validation in KIC. If someone has investigated it and we have an agreement our checks are redundant I'd be more than happy to remove them from here as well as from KIC.
As best I can tell from https://github.com/Kong/kubernetes-ingress-controller/issues/5197 and earlier chat discussion that is the case.
Pinged others in chat, though unfortunately everyone else involved is out today. If Mattia can confirm, we can go with https://github.com/Kong/charts/pull/956 to remove them entirely.
We're apparently unfortunately stuck with it until the feature support stuff is in place.
What this PR does / why we need it:
Because of this configuration, KIC 2.12's admission webhook receives requests to validate v1 resources which it doesn't know about:
Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
main
branch.