From 80a2428198a9be538340c2eed8bcfeffa66263f8 Mon Sep 17 00:00:00 2001 From: Emilien Devos Date: Thu, 2 Nov 2023 12:18:02 +0100 Subject: [PATCH] add ability to set extra containers volumes to ldap (#63) --- templates/ldap/openldap-deployment.yaml | 9 +++++++++ values.yaml | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/templates/ldap/openldap-deployment.yaml b/templates/ldap/openldap-deployment.yaml index 056afa5..25d702a 100644 --- a/templates/ldap/openldap-deployment.yaml +++ b/templates/ldap/openldap-deployment.yaml @@ -28,6 +28,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} containers: + {{- if $webapp.extraContainers }} + {{ toYaml $webapp.extraContainers | nindent 6 }} + {{- end }} - name: georchestra-ldap image: {{ $webapp.docker_image }} imagePullPolicy: Always @@ -55,6 +58,9 @@ spec: name: openldap-config - mountPath: /var/lib/ldap name: openldap-data + {{- if $webapp.extraVolumeMounts }} + {{- toYaml $webapp.extraVolumeMounts | nindent 10 }} + {{- end }} livenessProbe: exec: command: @@ -71,6 +77,9 @@ spec: - name: openldap-config persistentVolumeClaim: claimName: {{ include "georchestra.fullname" . }}-openldap-config + {{- if $webapp.extraVolumes }} + {{- toYaml $webapp.extraVolumes | nindent 6 }} + {{- end }} {{- if $webapp.registry_secret }} imagePullSecrets: - name: {{ $webapp.registry_secret }} diff --git a/values.yaml b/values.yaml index a13b86f..7923703 100644 --- a/values.yaml +++ b/values.yaml @@ -104,6 +104,15 @@ georchestra: openldap: enabled: true docker_image: georchestra/ldap:latest + extraVolumeMounts: [] + # - name: copy-portal-skins + # mountPath: /var/lib/lemonldap-ng/portal/skins + extraVolumes: [] + # - name: copy-portal-skins + # emptyDir: {} + extraContainers: + # - name: my-sidecar + # image: nginx:latest # registry_secret: default proxy: enabled: true