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

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

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

Loading…
Cancel
Save