Skip to content

Commit

Permalink
chore(3225): change mailpit name, mountpath, add pvc vars, mailpit db…
Browse files Browse the repository at this point in the history
…path
  • Loading branch information
Kolezhanchik committed Dec 11, 2024
1 parent 7fe9784 commit 7f3b950
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 12 deletions.
17 changes: 10 additions & 7 deletions helm/_mailpit/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ spec:
{{- end }}
spec:
{{- $imagePullSecrets := concat (.Values.imagePullSecrets | default list) (.Values.global.imagePullSecrets | default list) -}}
{{- with $imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with $imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ default .Values.global.serviceAccountName .Values.serviceAccountName }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
Expand All @@ -35,6 +35,9 @@ spec:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ $deploymentTag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- --db-file
- {{ .Values.dbPath | default "/var/lib/mailpit/mailpit.db" }}
env:
- name: DEPLOYMENT_TAG
value: {{ $deploymentTag | quote }}
Expand Down Expand Up @@ -68,10 +71,10 @@ spec:
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: working-dir
mountPath: /opt/devserver
- name: data
mountPath: /var/lib/mailpit
volumes:
- name: working-dir
- name: data
{{- if .Values.persistence.enabled }}
persistentVolumeClaim:
claimName: {{ default (include "_.fullname" .) .Values.persistence.existingClaim }}
Expand Down
13 changes: 10 additions & 3 deletions helm/_mailpit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ image:
tag: v1.21.1
pullPolicy: Always

global:
imagePullSecrets: []

imagePullSecrets: []
nameOverride: mailpit
fullnameOverride: mailpit
Expand Down Expand Up @@ -75,8 +78,12 @@ tolerations: []

affinity: {}

mailpit:
dbPath: /var/lib/mailpit/mailpit.db


persistence:
enabled: false
enabled: true
size: 200Mi
storageClassName: ""
existingClaim: ""
storageClassName: netapp-file-standard
existingClaim: mailpit
9 changes: 7 additions & 2 deletions helm/main/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,19 @@ weasyprint:
fullnameOverride: weasyprint

mailpit:
enabled: false
enabled: true
image:
pullPolicy: IfNotPresent

nameOverride: pltsvc-mailpit
fullnameOverride: pltsvc-mailpit

env: {}
dbPath: /var/lib/mailpit/mailpit.db
persistence:
enabled: true
size: 200Mi
storageClassName: netapp-file-standard
existingClaim: ""

ches-mock:
enabled: true
Expand Down

0 comments on commit 7f3b950

Please sign in to comment.