diff --git a/src/main/helm/templates/deployment.yaml b/src/main/helm/templates/deployment.yaml index 58ff6b8aeeff343f7af013e6c3ff8e22c31d326b..7131cc9d9630c7d8d5964a3abcf2512e42b3dc87 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 dfa90b4d8fc3d5de9b00838c86eca7ed504e4fa8..f6c863d20d3b9c29cf8227d9aaa5a494223df359 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