netscaler/netscaler-k8s-ingress-controller

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

Closed this issue · 4 comments

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

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.

httproute

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

closing the issue