Skip to content

Commit

Permalink
add ability to set extra containers volumes to ldap (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c authored Nov 2, 2023
1 parent 61e301d commit 80a2428
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions templates/ldap/openldap-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down
9 changes: 9 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80a2428

Please sign in to comment.