Merge pull request #15 from small-hack/fix/db-host-templating

fix db host templating
This commit is contained in:
Jesse Hitch
2025-01-18 12:11:19 +01:00
committed by GitHub
3 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.4.1 version: 0.4.2
# This is the version number of the application being deployed. # This is the version number of the application being deployed.
# renovate:image=ghcr.io/mattlqx/docker-pixelfed # renovate:image=ghcr.io/mattlqx/docker-pixelfed
+1 -1
View File
@@ -1,6 +1,6 @@
# pixelfed # pixelfed
![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) ![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)
A Helm chart for deploying Pixelfed on Kubernetes A Helm chart for deploying Pixelfed on Kubernetes
+3 -4
View File
@@ -270,15 +270,14 @@ spec:
- name: DB_CONNECTION - name: DB_CONNECTION
value: {{ .Values.externalDatabase.connection }} value: {{ .Values.externalDatabase.connection }}
- name: DB_HOST - name: DB_HOST
{{- if .Values.externalDatabase.enabled }} {{- if and .Values.externalDatabase.enabled .Values.externalDatabase.existingSecret }}
{{- if .Values.externalDatabase.existingSecret }}
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: {{ .Values.externalDatabase.existingSecret }} name: {{ .Values.externalDatabase.existingSecret }}
key: {{ .Values.externalDatabase.existingSecretKeys.host }} key: {{ .Values.externalDatabase.existingSecretKeys.host }}
{{- else }} {{- else if and .Values.externalDatabase.enabled (not .Values.externalDatabase.existingSecret) }}
value: {{ .Values.externalDatabase.host }} value: {{ .Values.externalDatabase.host }}
{{- end }} {{- else }}
value: {{ .Values.postgresql.fullnameOverride }} value: {{ .Values.postgresql.fullnameOverride }}
{{- end }} {{- end }}
- name: DB_USERNAME - name: DB_USERNAME