From afd7ffeff0d3649d4a3452ab04fa06b9236aaa7d Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Mon, 29 Apr 2024 13:58:16 +0200 Subject: [PATCH] another aptch --- library/common/templates/spawner/_pvc.tpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/common/templates/spawner/_pvc.tpl b/library/common/templates/spawner/_pvc.tpl index 5f16778f..a62728af 100644 --- a/library/common/templates/spawner/_pvc.tpl +++ b/library/common/templates/spawner/_pvc.tpl @@ -102,10 +102,9 @@ {{- $credentials := get $.Values.credentials $volsync.credentials -}} - {{- if $credentials.path -}} - {{- $resticrepository := printf "s3:%s/%s/%s/volsync/%s" $credentials.url $credentials.bucket ( $credentials.path | trimSuffix "/" ) $.Release.Name $volsyncSecretName -}} - {{- else -}} {{- $resticrepository := printf "s3:%s/%s/volsync/%s" $credentials.url $credentials.bucket $.Release.Name $volsyncSecretName -}} + {{- if $credentials.path -}} + {{- $resticrepository = printf "s3:%s/%s/%s/volsync/%s" $credentials.url $credentials.bucket ( $credentials.path | trimSuffix "/" ) $.Release.Name $volsyncSecretName -}} {{- end -}} {{- $resticpassword := ( $credentials.encrKey | default $.Release.Name ) -}}