From d3f10b6e1e814bc4bc0c0b8e6f9f75f58fe5d10e Mon Sep 17 00:00:00 2001 From: Niall McCullagh Date: Wed, 22 Dec 2021 14:27:05 +0000 Subject: [PATCH] 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 --- contrib/chart/backstage/Chart.yaml | 2 +- contrib/chart/backstage/templates/ingress.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/chart/backstage/Chart.yaml b/contrib/chart/backstage/Chart.yaml index 8aeab9be3e..9154368475 100644 --- a/contrib/chart/backstage/Chart.yaml +++ b/contrib/chart/backstage/Chart.yaml @@ -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. diff --git a/contrib/chart/backstage/templates/ingress.yaml b/contrib/chart/backstage/templates/ingress.yaml index 9340467800..3ec4990561 100644 --- a/contrib/chart/backstage/templates/ingress.yaml +++ b/contrib/chart/backstage/templates/ingress.yaml @@ -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