From 31d8a49189ce46ea419f2b1b57334cf8e316add6 Mon Sep 17 00:00:00 2001 From: Felix Reichenbach <felix.reichenbach@mgm-tp.com> Date: Wed, 12 Feb 2025 17:10:00 +0100 Subject: [PATCH] OZG-7615 add helm configuration for documantation url --- src/main/helm/templates/deployment.yaml | 4 ++++ src/test/helm/deployment_env_test.yaml | 14 ++++++++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml index 58ff6b8a..7131cc9d 100644 --- a/src/main/helm/templates/deployment.yaml +++ b/src/main/helm/templates/deployment.yaml @@ -70,6 +70,10 @@ spec: value: {{ include "app.ssoClientName" . }} - name: ozgcloud_oauth2_auth-server-url value: {{ include "app.ssoServerUrl" . }} + {{- if (((.Values.ozgcloud).user_assistance).documentation).url }} + - name: ozgcloud_user-assistance_documentation_url + value: {{ .Values.ozgcloud.user_assistance.documentation.url }} + {{- end }} {{- if not (.Values.database).useExternal }} - name: spring_data_mongodb_uri valueFrom: diff --git a/src/test/helm/deployment_env_test.yaml b/src/test/helm/deployment_env_test.yaml index dfa90b4d..f6c863d2 100644 --- a/src/test/helm/deployment_env_test.yaml +++ b/src/test/helm/deployment_env_test.yaml @@ -54,5 +54,15 @@ tests: content: name: ozgcloud_administration_sync_organisationseinheiten_cron value: "*/15 * * * *" - - + - it: should have user assistance documentation url + set: + ozgcloud: + user_assistance: + documentation: + url: http://hier/geht/es/zum/benutzerleitfaden.de + asserts: + - contains: + path: spec.template.spec.containers[0].env + content: + name: ozgcloud_user-assistance_documentation_url + value: http://hier/geht/es/zum/benutzerleitfaden.de -- GitLab