From c27ba0dd016b391d0309c3a79c0c267d4ebcfa58 Mon Sep 17 00:00:00 2001 From: OZGCloud <ozgcloud@mgm-tp.com> Date: Fri, 18 Oct 2024 15:11:13 +0200 Subject: [PATCH] ozg-6945 rename function --- src/main/helm/templates/_helpers.tpl | 2 +- src/main/helm/templates/deployment.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/helm/templates/_helpers.tpl b/src/main/helm/templates/_helpers.tpl index dd9bf30b9..435ffac96 100644 --- a/src/main/helm/templates/_helpers.tpl +++ b/src/main/helm/templates/_helpers.tpl @@ -164,6 +164,6 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }} {{- end -}} {{- end -}} -{{- define "app.zufiManagerAddress" -}} +{{- define "app.getZufiManagerAddress" -}} {{- required "zufiManager.address must be set" (.Values.zufiManager).address -}} {{- end -}} \ No newline at end of file diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml index 376274308..ff958feea 100644 --- a/src/main/helm/templates/deployment.yaml +++ b/src/main/helm/templates/deployment.yaml @@ -157,9 +157,9 @@ spec: value: {{ include "app.ozgcloud_migration_user-manager_address" . }} {{- if (.Values.zufiManager).enabled }} - name: ozgcloud_zufi-manager_address - value: {{ include "app.zufiManagerAddress" . }} + value: {{ include "app.getZufiManagerAddress" . }} - name: grpc_client_zufi-manager_address - value: {{ include "app.zufiManagerAddress" . }} + value: {{ include "app.getZufiManagerAddress" . }} - name: grpc_client_zufi-manager_negotiationType value: {{ (.Values.zufiManager).grpcClientNegotiationType | default "PLAINTEXT" }} {{- end}} -- GitLab