Skip to content

Commit f3de03f

Browse files
authored
Merge pull request #15 from small-hack/fix/db-host-templating
fix db host templating
2 parents 74e3f92 + cda3bd6 commit f3de03f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

charts/pixelfed/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.4.1
18+
version: 0.4.2
1919

2020
# This is the version number of the application being deployed.
2121
# renovate:image=ghcr.io/mattlqx/docker-pixelfed

charts/pixelfed/README.md

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

3-
![Version: 0.4.1](https://img.shields.io/badge/Version-0.4.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.3-nginx](https://img.shields.io/badge/AppVersion-v0.12.3--nginx-informational?style=flat-square)
3+
![Version: 0.4.2](https://img.shields.io/badge/Version-0.4.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.12.3-nginx](https://img.shields.io/badge/AppVersion-v0.12.3--nginx-informational?style=flat-square)
44

55
A Helm chart for deploying Pixelfed on Kubernetes
66

charts/pixelfed/templates/deployment.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,15 +270,14 @@ spec:
270270
- name: DB_CONNECTION
271271
value: {{ .Values.externalDatabase.connection }}
272272
- name: DB_HOST
273-
{{- if .Values.externalDatabase.enabled }}
274-
{{- if .Values.externalDatabase.existingSecret }}
273+
{{- if and .Values.externalDatabase.enabled .Values.externalDatabase.existingSecret }}
275274
valueFrom:
276275
secretKeyRef:
277276
name: {{ .Values.externalDatabase.existingSecret }}
278277
key: {{ .Values.externalDatabase.existingSecretKeys.host }}
279-
{{- else }}
278+
{{- else if and .Values.externalDatabase.enabled (not .Values.externalDatabase.existingSecret) }}
280279
value: {{ .Values.externalDatabase.host }}
281-
{{- end }}
280+
{{- else }}
282281
value: {{ .Values.postgresql.fullnameOverride }}
283282
{{- end }}
284283
- name: DB_USERNAME

0 commit comments

Comments
 (0)