From 22c7ce989a6d9cef438f1922766bfbee468b89f4 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 28 Oct 2024 16:57:57 +0100
Subject: [PATCH] OZG-6867: OZG-7036: Fix Egress to Zufi

---
 src/main/helm/templates/deployment.yaml | 4 ++++
 src/main/helm/values.yaml               | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml
index 7962926b..cf4720b8 100644
--- a/src/main/helm/templates/deployment.yaml
+++ b/src/main/helm/templates/deployment.yaml
@@ -104,6 +104,10 @@ spec:
           - name: ozgcloud_administration_sync_organisationseinheiten_cron
             value: {{ .Values.ozgcloud.sync.organisationseinheiten.cron | quote }}
           {{- end }}
+          - name: grpc_client_zufi-manager_address
+            value: {{ .Values.zufiManager.address }}
+          - name: grpc_client_zufi-manager_negotiationType
+            value: {{ (.Values.zufiManager).grpcClientNegotiationType | default "TLS" }}
         envFrom:
           {{- if (.Values.database).useExternal }}
           - secretRef:
diff --git a/src/main/helm/values.yaml b/src/main/helm/values.yaml
index 65c0a551..6d9f58a3 100644
--- a/src/main/helm/values.yaml
+++ b/src/main/helm/values.yaml
@@ -33,6 +33,9 @@ ozgcloud:
     api:
       user: administrationApiUser
 
+zufiManager:
+  address: zufi-server.zufi:9090
+
 image:
   repo: docker.ozg-sh.de
   name: administration
-- 
GitLab