netscaler-k8s-ingress-controller icon indicating copy to clipboard operation
netscaler-k8s-ingress-controller copied to clipboard

HTTPRoute CRD, for redirect action type the response status code must be in the range 300-399

Open progS1m opened this issue 3 years ago • 2 comments
trafficstars

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: image

progS1m avatar Jul 25 '22 12:07 progS1m

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 avatar Jul 25 '22 12:07 progS1m

@progS1m Thanks for reporting, will review and correct the same.

aroraharsh23 avatar Jul 26 '22 06:07 aroraharsh23

httproute The range has been updated in the latest version of Netscaler.

bharthi-m avatar Nov 09 '22 05:11 bharthi-m

closing the issue

ankits123 avatar Jan 31 '23 05:01 ankits123