Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[mailpit] add extraEnvVarsSecret #44

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading