Azure / aks-app-routing-operator

Kubernetes operator that implements AKS Application Routing
https://learn.microsoft.com/en-us/azure/aks/app-routing
MIT License
29 stars 20 forks source link

annotation permanent-redirect do not support '%20' #245

Open TomBalt opened 3 days ago

TomBalt commented 3 days ago

Hello Y'all,

We were migrating from on-prem K8s to AKS. As we started to use "Managed NGINX ingress with the application routing add-on" we ran in to some issues with annotation validation.

For example: if I set permanent-redirect value to something that contains '%20' I receive and error - validators.go:237] validation error on ingress prod-ns/redirect-org: annotation permanent-redirect contains invalid value https://super-site.sharepoint.com/sites/teams/IT/devops123/IT%20OPS

This is real example:

nginx.ingress.kubernetes.io/permanent-redirect: https://super-site.sharepoint.com/sites/teams/IT/devops123/IT%20OPS

Questions:

  1. Is there a way to make it work?
  2. If not, can annotation validation be disabled for Managed Nginx ingress?

P.S. I have used this article to setup Nginx ingress class and ingress controller - https://learn.microsoft.com/en-us/azure/aks/app-routing-nginx-configuration P.S.S. Old version of nginx installed from Helm works fine.