Nginx ingress controller virtual-server validation

Hello,

I have a question regarding the comprehensive validation mentioned here VirtualServer and VirtualServerRoute resources | NGINX Ingress Controller
Is there anyway currently not to apply the virtualserver when the comprehensive validation finds an error ? would that be possible with any existing webhooks ?

Hi @mosaeed at the moment there’s no way to validate before unless there’s a structural error which’ll cause VS/VSR to be rejected at apply state. These resources are consumed async at the moment.
We’ve a a proposal Avoiding an outage from a wrong configuration · Issue #7449 · nginx/kubernetes-ingress · GitHub at the moment which is fairly similar to your ask