From 67997154494b5c6a43672cc697b9d3e77c8a46dc Mon Sep 17 00:00:00 2001
From: Kalin Daskalov <kalin.daskalov@vereign.com>
Date: Mon, 15 Apr 2024 17:07:57 +0300
Subject: [PATCH] Update deployment configurations for swissrun agent and
 dashboard

---
 .../deployment/ci-cd/helm/templates/ingress.yaml   | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/apps/dashboard/deployment/ci-cd/helm/templates/ingress.yaml b/apps/dashboard/deployment/ci-cd/helm/templates/ingress.yaml
index 95517eaa..c2f8f8de 100644
--- a/apps/dashboard/deployment/ci-cd/helm/templates/ingress.yaml
+++ b/apps/dashboard/deployment/ci-cd/helm/templates/ingress.yaml
@@ -10,6 +10,9 @@ metadata:
    {{- else if eq .Release.Namespace "ocm-test" }}
   annotations:
 {{ toYaml .Values.ingress.ocmtest.annotations | indent 4 }}
+   {{- else if eq .Release.Namespace "swissrun" }}
+  annotations:
+{{ toYaml .Values.ingress.swissrun.annotations | indent 4 }}
    {{- end }}
   labels:
     {{- include "app.labels" . | nindent 4 }}
@@ -43,5 +46,16 @@ spec:
                 name: {{ template "app.name" . }}
                 port:
                   number: {{ .Values.service.port }}
+    {{- else if eq .Release.Namespace "swissrun" }}
+    - host: {{ .Values.ingress.frontendDomain }}
+      http:
+        paths:
+          - path: /swissrun/dashboard(/|$)(.*)
+            pathType: Prefix
+            backend:
+              service:
+                name: {{ template "app.name" . }}
+                port:
+                  number: {{ .Values.service.port }}
     {{- end }}
 {{- end }}
-- 
GitLab