netscaler-k8s-ingress-controller
netscaler-k8s-ingress-controller copied to clipboard
HTTPRoute CRD, for redirect action type the response status code must be in the range 300-399
Describe the bug I noticed in the HTTPRoute CRD for redirects has this validation: minimum: 100 maximum: 599
https://github.com/citrix/citrix-k8s-ingress-controller/blob/master/crd/contentrouting/HTTPRoute.yaml
Problem, when configuring a 404 this leads to an error and would either not work. See printscreen.
Expected behavior Should be set to minimum: 300 maximum: 399
Additional context
GUI Error shows that redirects only supports values from 300-399:

I know for 404 Responder the workaround is to use a Rewrite-Responder: https://github.com/citrix/citrix-k8s-ingress-controller/blob/master/docs/crds/rewrite-responder.md
@progS1m Thanks for reporting, will review and correct the same.
The range has been updated in the latest version of Netscaler.
closing the issue