From c36a044e274253f1ce60eb8b905131cb8d63f11f Mon Sep 17 00:00:00 2001 From: Sergiu-Alexandru Vidrascu Date: Wed, 20 Dec 2017 15:48:09 +0200 Subject: [PATCH] DEPLOY-276: Add dynamic release_name as variable to repository container --- .../templates/config-repository.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/helm/alfresco-content-services/templates/config-repository.yaml b/helm/alfresco-content-services/templates/config-repository.yaml index 93d678b0ef..77a5ca87b1 100644 --- a/helm/alfresco-content-services/templates/config-repository.yaml +++ b/helm/alfresco-content-services/templates/config-repository.yaml @@ -12,7 +12,12 @@ data: {{ $key }}: {{ $val | quote }} {{- end }} {{- end }} - CATALINA_OPTS: " -Ddb.driver=org.postgresql.Driver + RELEASE_NAME: {{ .Release.Name }} + CATALINA_OPTS: "-Dalfresco.host={{ template "content-services.fullname" . }}-repository + -Dalfresco.port={{ .Values.repository.service.externalPort }} + -Dshare.host={{ template "content-services.fullname" . }}-share + -Dshare.port={{ .Values.share.service.externalPort }} + -Ddb.driver=org.postgresql.Driver -Ddb.username={{ .Values.postgresql.postgresUser }} -Ddb.password={{ .Values.postgresql.postgresPassword }} -Ddb.url=jdbc:postgresql://{{ .Release.Name }}-postgresql-acs:5432/{{ .Values.postgresql.postgresDatabase }}