Skip to content

Commit 03554fc

Browse files
authored
Add port for external postgres (#24)
* Update configmap-listmonk.yaml * Updated default port in values.yaml * Update values.schema.json port * Update README.md port * bumped version
1 parent 99c6573 commit 03554fc

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

charts/listmonk/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
2-
appVersion: "5.0.3"
2+
appVersion: "5.0.3-2"
33
description: High performance, self-hosted, newsletter and mailing list manager with a modern dashboard.
44
name: listmonk
55
type: application
6-
version: 5.0.3
6+
version: 5.0.3-2

charts/listmonk/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# listmonk
22

33
[![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square)](#)
4-
[![Version: 5.0.3](https://img.shields.io/badge/Version-5.0.3-informational?style=flat-square)](#)
5-
[![AppVersion: 5.0.3](https://img.shields.io/badge/AppVersion-5.0.3-informational?style=flat-square)](#)
4+
[![Version: 5.0.3-2](https://img.shields.io/badge/Version-5.0.3-2-informational?style=flat-square)](#)
5+
[![AppVersion: 5.0.3-2](https://img.shields.io/badge/AppVersion-5.0.3-2-informational?style=flat-square)](#)
66

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

@@ -15,7 +15,7 @@ $ helm upgrade listmonk listmonk \
1515
--namespace listmonk \
1616
--repo https://th0th.github.io/helm-charts \
1717
--values values.yaml \
18-
--version 5.0.3
18+
--version 5.0.3-2
1919
```
2020

2121
## Uninstall
@@ -36,14 +36,15 @@ $ helm uninstall --namespace listmonk listmonk
3636
| listmonk.admin.password | string | `""` | the admin password |
3737
| listmonk.admin.username | string | `""` | the admin username |
3838
| listmonk.image.repository | string | `"listmonk/listmonk"` | the listmonk image repository |
39-
| listmonk.image.tag | string | `"v5.0.3"` | the listmonk image tag |
39+
| listmonk.image.tag | string | `"v5.0.3-2"` | the listmonk image tag |
4040
| listmonk.replicas | int | `1` | the number of listmonk deployment replicas |
4141
| postgres.database | string | `"listmonk"` | the postgres database name |
4242
| postgres.enabled | bool | `true` | enable internal postgres |
4343
| postgres.existingSecret | string | `""` | name of an existing Kubernetes Secret with database credentials |
4444
| postgres.existingSecretPasswordKey | string | `""` | key in existingSecret for the database password (required if set) |
4545
| postgres.existingSecretUsernameKey | string | `""` | key in existingSecret for the database username (required if set) |
4646
| postgres.hostname | string | `""` | external postgres hostname (used when postgres.enabled is false) |
47+
| postgres.port | number | `5432` | external postgres port (used when postgres.enabled is false) |
4748
| postgres.image.repository | string | `"postgres"` | the postgres image repository |
4849
| postgres.image.tag | string | `"16-alpine"` | the postgres image tag |
4950
| postgres.password | string | `""` | the postgres password (used if existingSecret is not set) |

charts/listmonk/templates/configmap-listmonk.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ data:
1515
{{- else }}
1616
host = "{{ .Values.postgres.hostname }}"
1717
{{- end }}
18-
port = 5432
18+
port = "{{ .Values.postgres.port }}"
19+
1920
database = "{{ .Values.postgres.database }}"
2021
ssl_mode = "{{ .Values.postgres.ssl_mode }}"
2122
max_open = 25

charts/listmonk/values.schema.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@
7171
"hostname": {
7272
"type": "string"
7373
},
74+
"port": {
75+
"type": "number"
76+
}
7477
"image": {
7578
"additionalProperties": false,
7679
"properties": {

charts/listmonk/values.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ listmonk:
1414
# -- the listmonk image repository
1515
repository: listmonk/listmonk
1616
# -- the listmonk image tag
17-
tag: v5.0.3
17+
tag: v5.0.3-2
1818
# -- the number of listmonk deployment replicas
1919
replicas: 1
2020
postgres:
@@ -32,6 +32,7 @@ postgres:
3232
existingSecretUsernameKey: db_user
3333
# -- when not enabled, the external postgres service hostname is required
3434
hostname: ""
35+
port: 5432
3536
image:
3637
# -- the postgres image repository
3738
repository: postgres

0 commit comments

Comments
 (0)