From ff3608daeb9706d196a51df9b9044d2608c675ff Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Fri, 6 Sep 2024 15:51:06 +0200
Subject: [PATCH] OZG-6499 fix admininstration address in deployment

---
 src/main/helm/templates/_helpers.tpl                 | 2 +-
 src/test/helm/deployment_config_client_env_test.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 fde4331dfd..1bcec7ddda 100644
--- a/src/main/helm/templates/_helpers.tpl
+++ b/src/main/helm/templates/_helpers.tpl
@@ -58,7 +58,7 @@ app.kubernetes.io/namespace: {{ include "app.namespace" . }}
 {{- end -}}
 
 {{- define "app.spring_cloud_config_administration_address" -}}
-{{ printf "%s.%s:8080" ( coalesce .Values.administrationName "administration" ) .Release.Namespace }}
+{{ printf "%s.%s:8080/configserver" ( coalesce .Values.administrationName "administration" ) .Release.Namespace }}
 {{- end -}}
 
 {{- define "app.baseUrl" -}}
diff --git a/src/test/helm/deployment_config_client_env_test.yaml b/src/test/helm/deployment_config_client_env_test.yaml
index 685256ac81..25ccaef452 100644
--- a/src/test/helm/deployment_config_client_env_test.yaml
+++ b/src/test/helm/deployment_config_client_env_test.yaml
@@ -20,7 +20,7 @@ tests:
           path: spec.template.spec.containers[0].env
           content:
             name: ozgcloud_administration_address
-            value: administration.sh-helm-test:8080
+            value: administration.sh-helm-test:8080/configserver
   - it: should have set administration server address
     set:
       administrationName: custom_admin_name
@@ -29,4 +29,4 @@ tests:
           path: spec.template.spec.containers[0].env
           content:
             name: ozgcloud_administration_address
-            value: custom_admin_name.sh-helm-test:8080
+            value: custom_admin_name.sh-helm-test:8080/configserver
-- 
GitLab