Skip to content
Open
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/maildev/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: maildev
version: 0.2.0
version: 0.3.0
appVersion: 2.2.1
type: application
description: SMTP Server + Web Interface for viewing and testing emails during development.
Expand Down
17 changes: 17 additions & 0 deletions charts/maildev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Not listing here the more general paramaters such as tolerations, nodeSelectors,

| Parameter | Description | Default |
|-------------------------------------:|:--------------------------------------------------------------------------------------------------|:--------------------------------------------|
| **image.tag** | maildev image tag; defaults to the chart appVersion. Set to a 3.x tag to opt in (see below). | `""` (appVersion) |
| **probePath** | HTTP path for the liveness/readiness probes. Use `/` for maildev 3.x (which removed `/healthz`). | `/healthz` |
| **verbose** | Enable verbose logging, `--verbose`. | `false` |
| **extraArgs** | Extra CLI args appended after the chart-generated flags, for options not modelled below. | `[]` |
| **extraEnv** | Extra container env vars (list of `name`/`value` or `valueFrom` entries), for options not modelled below. | `[]` |
Expand All @@ -45,6 +47,21 @@ Not listing here the more general paramaters such as tolerations, nodeSelectors,
| **incoming.user** | SMTP user for incoming emails, `MAILDEV_INCOMING_USER`. | |
| **incoming.pass** | SMTP password for incoming emails, `MAILDEV_INCOMING_PASS`. | |

## Trying maildev 3.x

The chart defaults to the latest stable maildev (2.x). maildev 3.x is a
rewrite and currently only ships a release candidate, so it is not the
default. It removed the `/healthz` endpoint the probes use, so opting in
requires pointing the probes at `/`:

```yaml
image:
tag: "3.0.0-rc.1"
probePath: "/"
```

The chart's flags and env vars are otherwise compatible with 3.x.

## Test it

Open a shell into the pod.
Expand Down
4 changes: 2 additions & 2 deletions charts/maildev/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ spec:
{{- end }}
livenessProbe:
httpGet:
path: /healthz
path: {{ .Values.probePath }}
port: {{ .Values.ports.web }}
readinessProbe:
httpGet:
path: /healthz
path: {{ .Values.probePath }}
port: {{ .Values.ports.web }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down
9 changes: 8 additions & 1 deletion charts/maildev/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ replicaCount: 1
image:
repository: maildev/maildev
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
# Overrides the image tag whose default is the chart appVersion (2.2.1).
# To try the 3.x release candidate, set tag: "3.0.0-rc.1" and probePath: "/"
# (3.x is a rewrite that removed the /healthz endpoint).
tag: ""

# Enable verbose logging (--verbose).
Expand Down Expand Up @@ -58,6 +60,11 @@ ports:
# MAILDEV_WEB_PORT
web: 1080

# HTTP path used by the liveness/readiness probes. maildev 2.x serves
# "/healthz"; the 3.x rewrite removed it, so set this to "/" when running a
# 3.x image (see image.tag).
probePath: /healthz

# MAILDEV_HTTPS
https:
enabled: false
Expand Down
Loading