fix: backend configmap with secrets

This commit is contained in:
Skyler Mäntysaari 2023-07-21 06:05:46 +03:00
parent 5280698596
commit bf461ea8fb
3 changed files with 7 additions and 7 deletions

View file

@ -10,7 +10,7 @@ sources:
- https://github.com/TeamPiped/piped-proxy
keywords:
- streaming
version: 3.0.1
version: 3.0.2
appVersion: latest
kubeVersion: ">=1.22.0-0"
maintainers:
@ -28,4 +28,4 @@ dependencies:
annotations:
artifacthub.io/changes: |-
- kind: fixed
description: Init containers
description: backend configmap with secrets

View file

@ -1,6 +1,6 @@
# piped
![Version: 3.0.1](https://img.shields.io/badge/Version-3.0.1-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
![Version: 3.0.2](https://img.shields.io/badge/Version-3.0.2-informational?style=flat-square) ![AppVersion: latest](https://img.shields.io/badge/AppVersion-latest-informational?style=flat-square)
Piped is an alternative privacy-friendly YouTube frontend which is efficient by design.
@ -160,7 +160,7 @@ helm install piped TeamPiped/piped -f values.yaml
## Changelog
### Version 3.0.1
### Version 3.0.2
#### Added
@ -172,7 +172,7 @@ N/A
#### Fixed
* Init containers
* backend configmap with secrets
## Support

View file

@ -66,8 +66,8 @@ data:
hibernate.connection.password: {{.Values.backend.config.database.password }}
{{ end }}
{{- if .Values.backend.config.database.secret }}
hibernate.connection.username: {{ include "common.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" .Values.backend.config.database.secret "Key" "DB_USERNAME" ) -}}
hibernate.connection.password: {{ include "common.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" .Values.backend.config.database.secret "Key" "DB_PASSWORD") -}}
hibernate.connection.username: {{ include "common.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" .Values.backend.config.database.secret "Key" "DB_USERNAME" ) }}
hibernate.connection.password: {{ include "common.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" .Values.backend.config.database.secret "Key" "DB_PASSWORD") }}
{{- end }}
{{- else if .Values.postgresql.enabled }}
hibernate.connection.url: jdbc:postgresql://piped-postgresql/{{ .Values.postgresql.auth.database}}