mirror of
https://github.com/TeamPiped/Piped-Kubernetes.git
synced 2024-12-13 22:00:38 +05:30
Allow overriding of secret keys for database (#78)
Increment Chart version
This commit is contained in:
parent
d0cf6a9a09
commit
cfec6a8783
@ -10,7 +10,7 @@ sources:
|
|||||||
- https://github.com/TeamPiped/piped-proxy
|
- https://github.com/TeamPiped/piped-proxy
|
||||||
keywords:
|
keywords:
|
||||||
- streaming
|
- streaming
|
||||||
version: 4.1.2
|
version: 5.0.0
|
||||||
appVersion: latest
|
appVersion: latest
|
||||||
kubeVersion: ">=1.22.0-0"
|
kubeVersion: ">=1.22.0-0"
|
||||||
maintainers:
|
maintainers:
|
||||||
@ -28,4 +28,4 @@ dependencies:
|
|||||||
annotations:
|
annotations:
|
||||||
artifacthub.io/changes: |-
|
artifacthub.io/changes: |-
|
||||||
- kind: changed
|
- kind: changed
|
||||||
description: Upgraded `postgresql` chart dependency to version 13.2.27
|
description: Change database values configuration to allow overriding of secret keys for database
|
||||||
|
@ -65,9 +65,9 @@ data:
|
|||||||
hibernate.connection.username: {{.Values.backend.config.database.username }}
|
hibernate.connection.username: {{.Values.backend.config.database.username }}
|
||||||
hibernate.connection.password: {{.Values.backend.config.database.password }}
|
hibernate.connection.password: {{.Values.backend.config.database.password }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{- if .Values.backend.config.database.secret }}
|
{{- if and (.Values.backend.config.database.secret) (.Values.backend.config.database.secret.name) }}
|
||||||
hibernate.connection.username: {{ include "common.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" .Values.backend.config.database.secret "Key" "DB_USERNAME" ) }}
|
hibernate.connection.username: {{ include "common.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" .Values.backend.config.database.secret.name "Key" (.Values.backend.config.database.secret.username | default "DB_USERNAME")) }}
|
||||||
hibernate.connection.password: {{ include "common.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" .Values.backend.config.database.secret "Key" "DB_PASSWORD") }}
|
hibernate.connection.password: {{ include "common.getValueFromSecret" (dict "Namespace" .Release.Namespace "Name" .Values.backend.config.database.secret.name "Key" (.Values.backend.config.database.secret.password | default "DB_PASSWORD")) }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else if .Values.postgresql.enabled }}
|
{{- else if .Values.postgresql.enabled }}
|
||||||
hibernate.connection.url: jdbc:postgresql://piped-postgresql/{{ .Values.postgresql.auth.database}}
|
hibernate.connection.url: jdbc:postgresql://piped-postgresql/{{ .Values.postgresql.auth.database}}
|
||||||
|
@ -99,7 +99,11 @@ backend:
|
|||||||
# password: changeme
|
# password: changeme
|
||||||
# Please only provide the secret name (it should already exist),
|
# Please only provide the secret name (it should already exist),
|
||||||
# it should only include database.username and database.password as others will be taken from above.
|
# it should only include database.username and database.password as others will be taken from above.
|
||||||
# secret: secret-name
|
# secret:
|
||||||
|
# name: secret-name
|
||||||
|
# Optionally grab differently named keys
|
||||||
|
# username: DB_USERNAME
|
||||||
|
# password: DB_PASSWORD
|
||||||
|
|
||||||
|
|
||||||
image:
|
image:
|
||||||
|
Loading…
Reference in New Issue
Block a user