From c2c3f15598e0c5624a93e60a8b9b71775ef6f55b Mon Sep 17 00:00:00 2001
From: Dominik Hebeler <dominik@suma-ev.de>
Date: Thu, 12 May 2022 09:27:17 +0200
Subject: [PATCH] fixed wsb ingress

---
 .gitlab/development.yaml     |  7 -------
 .gitlab/production.yaml      | 21 ---------------------
 .gitlab/review.yaml          |  7 -------
 chart/templates/ingress.yaml |  7 +++++++
 4 files changed, 7 insertions(+), 35 deletions(-)

diff --git a/.gitlab/development.yaml b/.gitlab/development.yaml
index bd0d69f5a..6fe3606f6 100644
--- a/.gitlab/development.yaml
+++ b/.gitlab/development.yaml
@@ -7,13 +7,6 @@ ingress:
       paths:
         - path: /
           pathType: ImplementationSpecific
-        - path: /wsb
-          pathType: Prefix
-          backend:
-            service:
-              name: wsb
-              port:
-                number: 80
   tls:
     - hosts:
         - metager3.de
diff --git a/.gitlab/production.yaml b/.gitlab/production.yaml
index 4e2dd12a1..93a0c45e5 100644
--- a/.gitlab/production.yaml
+++ b/.gitlab/production.yaml
@@ -7,35 +7,14 @@ ingress:
       paths:
         - path: /
           pathType: ImplementationSpecific
-        - path: /wsb
-          pathType: Prefix
-          backend:
-            service:
-              name: wsb
-              port:
-                number: 80
     - host: metager.org
       paths:
         - path: /
           pathType: ImplementationSpecific
-        - path: /wsb
-          pathType: Prefix
-          backend:
-            service:
-              name: wsb
-              port:
-                number: 80
     - host: metager.es
       paths:
         - path: /
           pathType: ImplementationSpecific
-        - path: /wsb
-          pathType: Prefix
-          backend:
-            service:
-              name: wsb
-              port:
-                number: 80
   tls:
     - hosts:
         - metager.de
diff --git a/.gitlab/review.yaml b/.gitlab/review.yaml
index 3db6d2c11..870ff0015 100644
--- a/.gitlab/review.yaml
+++ b/.gitlab/review.yaml
@@ -6,13 +6,6 @@ ingress:
     - paths:
         - path: /
           pathType: ImplementationSpecific
-        - path: /wsb
-          pathType: Prefix
-          backend:
-            service:
-              name: wsb
-              port:
-                number: 80
   tls:
     - hosts:
         - "*.review.metager.de"
diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml
index 63c1311c9..da678609e 100644
--- a/chart/templates/ingress.yaml
+++ b/chart/templates/ingress.yaml
@@ -57,5 +57,12 @@ spec:
               servicePort: {{ $svcPort }}
               {{- end }}
           {{- end }}
+          - path: /wsb
+            pathType: Prefix
+            backend:
+              service:
+                name: wsb
+                port:
+                  number: 80
     {{- end }}
 {{- end }}
-- 
GitLab