Skip to content

Commit a63c547

Browse files
authored
Merge pull request #150 from small-hack/fix-db-env-vars
Fix db env vars
2 parents ec0246d + c4edb2e commit a63c547

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

charts/mastodon/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type: application
99
# This is the chart version. This version number should be incremented each time you make changes
1010
# to the chart and its templates, including the app version.
1111
# Versions are expected to follow Semantic Versioning (https://semver.org/)
12-
version: 11.0.0
12+
version: 11.0.1
1313

1414
# renovate: image=ghcr.io/mastodon/mastodon
1515
appVersion: v4.4.4

charts/mastodon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# mastodon
22

3-
![Version: 11.0.0](https://img.shields.io/badge/Version-11.0.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.4.4](https://img.shields.io/badge/AppVersion-v4.4.4-informational?style=flat-square)
3+
![Version: 11.0.1](https://img.shields.io/badge/Version-11.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v4.4.4](https://img.shields.io/badge/AppVersion-v4.4.4-informational?style=flat-square)
44

55
Mastodon is a free, open-source social network server based on ActivityPub.
66

charts/mastodon/templates/_db-migrate.tpl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,15 @@ spec:
5353
- db:migrate
5454
{{- end }}
5555
envFrom:
56+
- configMapRef:
57+
name: {{ include "mastodon.fullname" . }}-env
5658
- secretRef:
5759
{{- if and .prepare (not .Values.mastodon.secrets.existingSecret) }}
5860
name: {{ template "mastodon.secretName" . }}-prepare
5961
{{- else }}
6062
name: {{ template "mastodon.secretName" . }}
6163
{{- end }}
6264
env:
63-
- name: "DB_HOST"
64-
value: {{ template "mastodon.postgres.direct.host" . }}
65-
- name: "DB_PORT"
66-
value: {{ template "mastodon.postgres.direct.port" . }}
67-
- name: "DB_NAME"
68-
value: {{ template "mastodon.postgres.direct.database" . }}
69-
- name: "DB_USER"
70-
value: {{ .Values.postgresql.auth.username }}
7165
- name: "DB_PASS"
7266
valueFrom:
7367
secretKeyRef:

0 commit comments

Comments
 (0)