nextcloud: fix db user encoding issue (#2466)

This commit is contained in:
Stavros Kois
2024-05-14 11:39:43 +03:00
committed by GitHub
parent c1b718a1e9
commit 293d986306
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ description: A file sharing server that puts the control and security of your ow
annotations:
title: Nextcloud
type: application
version: 2.0.5
version: 2.0.6
apiVersion: v2
appVersion: 29.0.0
kubeVersion: '>=1.16.0-0'
@@ -10,6 +10,9 @@
{{/* Fetch secrets from pre-migration secret */}}
{{- with (lookup "v1" "Secret" .Release.Namespace "db-details") -}}
{{- $dbUser = ((index .data "db-user") | b64dec) -}}
{{- if contains "\\x" (printf "%q" $dbUser) -}}
{{- $dbUser = (index .data "db-user") -}}
{{- end -}}
{{- $dbPass = ((index .data "db-password") | b64dec) -}}
{{- end -}}