Browse Source

Implemented LDAP option for emailleg

master
Fábio Kaiser Rauber 2 years ago
parent
commit
70991c9cf2
  1. 17
      charts/emailleg/v1.4.0/templates/deployment.yaml
  2. 4
      charts/emailleg/v1.4.0/values.yaml

17
charts/emailleg/v1.4.0/templates/deployment.yaml

@ -44,6 +44,12 @@ spec:
value: {{ .Values.mail.domain | quote }}
- name: POSTMASTER
value: "admin"
{{- if .Values.mail.ldap.server }}
- name: LDAP_SRV
value: {{ .Values.mail.ldap.server }}
- name: BASE_DN
value: {{ .Values.mail.ldap.baseDN }}
{{- end }}
ports:
- name: imap
containerPort: 143
@ -91,6 +97,14 @@ spec:
value: {{ .Values.mail.relayNets | quote }}
- name: RELAYHOST
value: {{ .Values.mail.relayHost | quote }}
{{- if .Values.mail.ldap.server }}
- name: LDAP_SRV
value: {{ .Values.mail.ldap.server }}
- name: BASE_DN
value: {{ .Values.mail.ldap.baseDN }}
- name: MBOX_DOMAINS
value: {{ .Values.mail.ldap.mboxDomains }}
{{- end }}
ports:
- name: smtp
containerPort: 25
@ -114,6 +128,7 @@ spec:
name: mailvol
resources:
{{- toYaml .Values.smtp.resources | nindent 12 }}
{{- if not .Values.mail.ldap.server }}
- name: admin
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
@ -186,7 +201,7 @@ spec:
name: mailvol
resources:
{{- toYaml .Values.redis.resources | nindent 12 }}
{{- end }}
volumes:
- name: mailvol
persistentVolumeClaim:

4
charts/emailleg/v1.4.0/values.yaml

@ -75,6 +75,10 @@ mail:
website: http://www.interlegis.leg.br
siteName: E-mail Legislativo
managerPW: secretPw
ldap:
server: ""
baseDN: ""
mboxDomains: ""
persistence:
#storageClass: ""

Loading…
Cancel
Save