Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ingress Controller ApisixRoutes: Reaching limit with less than 100 Characters #11821

Open
csotiriou opened this issue Dec 11, 2024 · 0 comments · May be fixed by #11822
Open

Ingress Controller ApisixRoutes: Reaching limit with less than 100 Characters #11821

csotiriou opened this issue Dec 11, 2024 · 0 comments · May be fixed by #11822
Labels
bug Something isn't working

Comments

@csotiriou
Copy link
Contributor

csotiriou commented Dec 11, 2024

Current Behavior

Currently, the gateway has a limitation of 100 characters for a route name. This is applied to all routes, either they are created by the ingress controller or not.

Expected Behavior

When creating an ingress route with a route name of less than 100 characters, the route should be accepted and working

Error Logs

Kubernetes Resources with route names less than 100 characters, will NOT always be able to be processed. This happens because in Kubernetes, the route names are automatically concatenated with the namespace, and the name of the resource.

That creates impossible situations, confusion, and vague situations, since developers and devops cannot foresee in advance how much the route name will take under the hood.

Steps to Reproduce

  • Create a setup with Apisix Ingress Controller
  • Create a route with 99 characters as one of the route names (to be sure)
  • Apply.
  • Watch the Ingress throw errors due to validation issues.

Environment

  • All versions of Apisix
  • Kubernetes (any version)

Question

Is there any reason why there is a limit of 100 characters in the route name in the first place? I have a PR ready, I don't know if it's the correct way of solving, this - but when this happens, it's affecting everyone using the cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
1 participant