Skip to content

Commit

Permalink
Add an initContainer to listmonk's installation
Browse files Browse the repository at this point in the history
  • Loading branch information
th0th committed Oct 3, 2024
1 parent ec3fb2d commit 0e418d3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion charts/listmonk/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ appVersion: "3.0.0"
name: listmonk
description: High performance, self-hosted, newsletter and mailing list manager with a modern dashboard.
type: application
version: 0.1.2
version: 0.2.0
8 changes: 4 additions & 4 deletions charts/listmonk/README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# listmonk

![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)
![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square)

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard.

## Install

```shell
$ helm upgrade \
$ helm upgrade listmonk listmonk \
--create-namespace \
--install listmonk listmonk \
--install \
--namespace listmonk \
--repo https://th0th.github.io/helm-charts \
--values values.yaml \
--version 0.1.0
--version 0.2.0
```

## Uninstall
Expand Down
19 changes: 13 additions & 6 deletions charts/listmonk/templates/deployment-listmonk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,24 @@ spec:
{{- include "listmonk.selectorLabels" . | nindent 8 }}
spec:
containers:
- command:
- ./listmonk
- --idempotent
- --install
- --yes
image: {{ .Values.listmonk.image.repository }}:{{ .Values.listmonk.image.tag }}
- image: {{ .Values.listmonk.image.repository }}:{{ .Values.listmonk.image.tag }}
name: listmonk
volumeMounts:
- mountPath: /listmonk/config.toml
name: config
subPath: config.toml
initContainers:
- name: init
image: {{ .Values.listmonk.image.repository }}:{{ .Values.listmonk.image.tag }}
command:
- ./listmonk
- --install
- --upgrade
- --yes
volumeMounts:
- mountPath: /listmonk/config.toml
name: config
subPath: config.toml
volumes:
- configMap:
name: {{ include "listmonk.fullname" . }}-listmonk
Expand Down

0 comments on commit 0e418d3

Please sign in to comment.