From 1b602611b1057634885c7f6412bf317322531354 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Wed, 4 Dec 2024 19:09:25 +0100
Subject: [PATCH] OZG-7078 set barrierefreiheitUrl container env from helm
 values

Sub task: OZG-7267
---
 src/main/helm/templates/deployment.yaml              |  4 ++++
 src/test/helm/deployment_collaboration_env_test.yaml | 12 +++++++++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml
index dee4ff1198..56cf8d1ddf 100644
--- a/src/main/helm/templates/deployment.yaml
+++ b/src/main/helm/templates/deployment.yaml
@@ -117,6 +117,10 @@ spec:
         - name: ozgcloud_feature_collaborationEnabled
           value: {{ ((.Values.ozgcloud).feature).collaborationEnabled | quote }}
         {{- end }}
+        {{- if (.Values.ozgcloud).barrierefreiheitUrl }}
+        - name: ozgcloud_barrierefreiheitUrl
+          value: {{ (.Values.ozgcloud).barrierefreiheitUrl }}
+        {{- end }}
 
         image: "{{ .Values.image.repo }}/{{ .Values.image.name }}:{{ coalesce (.Values.image).tag "latest" }}"
         imagePullPolicy: Always
diff --git a/src/test/helm/deployment_collaboration_env_test.yaml b/src/test/helm/deployment_collaboration_env_test.yaml
index 4cb772d0ee..b50af868a2 100644
--- a/src/test/helm/deployment_collaboration_env_test.yaml
+++ b/src/test/helm/deployment_collaboration_env_test.yaml
@@ -63,4 +63,14 @@ tests:
           path: spec.template.spec.containers[0].env
           content:
             name: grpc_client_zufi-manager_negotiationType
-            value: TLS
\ No newline at end of file
+            value: TLS
+  - it: should have barrierefreiheitUrl
+    set:
+      ozgcloud:
+        barrierefreiheitUrl: http://barrierefreiheit.url
+    asserts:
+      - contains:
+          path: spec.template.spec.containers[0].env
+          content:
+            name: ozgcloud_barrierefreiheitUrl
+            value: http://barrierefreiheit.url
\ No newline at end of file
-- 
GitLab