fix db host templating
This commit is contained in:
@@ -15,7 +15,7 @@ type: application
|
||||
# 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.
|
||||
# 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.
|
||||
# renovate:image=ghcr.io/mattlqx/docker-pixelfed
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# pixelfed
|
||||
|
||||
  
|
||||
  
|
||||
|
||||
A Helm chart for deploying Pixelfed on Kubernetes
|
||||
|
||||
@@ -193,4 +193,4 @@ A Helm chart for deploying Pixelfed on Kubernetes
|
||||
| volumes | list | `[]` | Additional volumes on the output Deployment definition. |
|
||||
|
||||
----------------------------------------------
|
||||
Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
|
||||
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
|
||||
|
||||
@@ -270,15 +270,14 @@ spec:
|
||||
- name: DB_CONNECTION
|
||||
value: {{ .Values.externalDatabase.connection }}
|
||||
- name: DB_HOST
|
||||
{{- if .Values.externalDatabase.enabled }}
|
||||
{{- if .Values.externalDatabase.existingSecret }}
|
||||
{{- if and .Values.externalDatabase.enabled .Values.externalDatabase.existingSecret }}
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ .Values.externalDatabase.existingSecret }}
|
||||
key: {{ .Values.externalDatabase.existingSecretKeys.host }}
|
||||
{{- else }}
|
||||
{{- else if and .Values.externalDatabase.enabled (not .Values.externalDatabase.existingSecret) }}
|
||||
value: {{ .Values.externalDatabase.host }}
|
||||
{{- end }}
|
||||
{{- else }}
|
||||
value: {{ .Values.postgresql.fullnameOverride }}
|
||||
{{- end }}
|
||||
- name: DB_USERNAME
|
||||
|
||||
Reference in New Issue
Block a user