fix api docs routing clash with /api

/api-docs was getting routed to the backend /api route. The
documentation at https://kubernetes.io/docs/concepts/services-networking/ingress/
describes that the path should match on the full element so this was
unexpected. Adding a trailing slash is not supposed to have an impact
but in this case it solved the problem.

Signed-off-by: Niall McCullagh <niallmccullagh@users.noreply.github.com>
This commit is contained in:
Niall McCullagh
2021-12-22 14:27:05 +00:00
parent 3a3797d858
commit d3f10b6e1e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 0.1.1
version: 0.1.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
@@ -40,7 +40,7 @@ spec:
servicePort: 80
{{/* Route the backend inside the same hostname as the frontend when they are the same */}}
{{- if eq $frontendUrl.host $backendUrl.host}}
- path: /api
- path: /api/
backend:
serviceName: {{ include "backend.serviceName" . }}
servicePort: 80