Skip to content

Commit

Permalink
Merge pull request #44 from jouve/mailpit/envsec
Browse files Browse the repository at this point in the history
[mailpit] add extraEnvVarsSecret
  • Loading branch information
jouve authored Apr 8, 2024
2 parents 1c43e6e + 3da1c22 commit 3e6c2c6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/mailpit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: mailpit
description: An email and SMTP testing tool with API for developers
icon: https://raw.githubusercontent.com/axllent/mailpit/develop/server/ui/mailpit.svg
type: application
version: 0.15.1
version: 0.15.2
appVersion: 1.15.1
dependencies:
- name: common
Expand Down
7 changes: 7 additions & 0 deletions charts/mailpit/ci/env-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
extraEnvVars:
- name: MP_MAX_MESSAGES
value: "1000"

## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for containers
##
extraEnvVarsSecret: my-secret
7 changes: 7 additions & 0 deletions charts/mailpit/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ spec:
{{- with .Values.extraEnvVars }}
env: {{- include "common.tplvalues.render" (dict "value" . "context" $) | nindent 10 }}
{{- end }}
{{- if .Values.extraEnvVarsSecret }}
envFrom:
{{- with .Values.extraEnvVarsSecret }}
- secretRef:
name: {{ template "common.tplvalues.render" (dict "value" . "context" $) }}
{{- end }}
{{- end }}
{{- with .Values.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/mailpit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ args: []
##
extraEnvVars: []

## @param extraEnvVarsSecret Name of existing Secret containing extra env vars for containers
##
extraEnvVarsSecret: ""

## @param livenessProbe [object] Enables the livenessProbe for mailpit
livenessProbe:
enabled: true
Expand Down

0 comments on commit 3e6c2c6

Please sign in to comment.