From 7abac4b2a3078e3e471495c3f6c1c1058aac2855 Mon Sep 17 00:00:00 2001 From: Manuel Andruccioli Date: Fri, 24 May 2024 14:34:24 +0200 Subject: [PATCH] feat(ingress): add notifications paths to ingress --- .../templates/nginx-ingress-controller.yaml | 10 +++++++++- kubernetes/helm-chart/piper-ingress/values.yaml | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/kubernetes/helm-chart/piper-ingress/templates/nginx-ingress-controller.yaml b/kubernetes/helm-chart/piper-ingress/templates/nginx-ingress-controller.yaml index 679d5d24c..1ab776b6f 100644 --- a/kubernetes/helm-chart/piper-ingress/templates/nginx-ingress-controller.yaml +++ b/kubernetes/helm-chart/piper-ingress/templates/nginx-ingress-controller.yaml @@ -16,6 +16,15 @@ spec: - host: localhost http: paths: + {{- range $i, $path := .Values.notificationsServicePaths }} + - pathType: ImplementationSpecific + path: "{{ $path }}" + backend: + service: + name: notifications-service + port: + number: 8080 + {{- end }} {{- range $i, $path := .Values.usersServicePaths }} - pathType: ImplementationSpecific path: "{{ $path }}" @@ -24,7 +33,6 @@ spec: name: users-service port: number: 8080 - {{- end }} {{- range $i, $path := .Values.friendshipsServicePaths }} - pathType: ImplementationSpecific diff --git a/kubernetes/helm-chart/piper-ingress/values.yaml b/kubernetes/helm-chart/piper-ingress/values.yaml index 25fefcbac..0d6d5cbf0 100644 --- a/kubernetes/helm-chart/piper-ingress/values.yaml +++ b/kubernetes/helm-chart/piper-ingress/values.yaml @@ -8,6 +8,10 @@ usersServicePaths: - /auth/login - /oauth/access_token +notificationsServicePaths: + - /notification + - /users/[a-zA-Z0-9]+/status + friendshipsServicePaths: - /friends - /friends/requests