Conversation
| {{- end }} | ||
| {{- end }} | ||
| - path: /(.*) | ||
| - path: /{{ $routePattern }} |
zsinnema
left a comment
There was a problem hiding this comment.
question: is it correct that I'm missing a backwards compatible fallback value for the route_pattern value? I mean incase the application doesn't set any imho it should default to "/"
suggestion: I would go for the Traefik regular expression as default format/setting (K8s ingress nginx controller is deprecated).
Regarding your question, I think it should be backward compatible as I added a As for Traefik, do you mean they handle regex differently, or do you mean to use the |
f5cb798 to
4238c75
Compare
Ah yes, you are right about 1. That's indeed the default fallback |
It seems like regex are handled as regular regex using the So I changed the manifest itself to be compatible with the Traefik ingress controller by adding the See: https://doc.traefik.io/traefik/reference/routing-configuration/kubernetes/ingress/#on-ingress |
|
This Traefik doc says that Regex are using this lib, so Regex should follow the syntax accepted by RE2. |
Closes CH-243
Implemented solution
Make the route pattern customizable on the app level, as well as globally.
How to test this PR
Change the route pattern of an app and try to reach it
Sanity checks:
Breaking changes (select one):
breaking-changeand the migration procedure is well described abovePossible deployment updates issues (select one):
alert:deploymentTest coverage (select one):
Documentation (select one):
Nice to have (if relevant):