fix: correct mistake in volsync url

This commit is contained in:
Kjeld Schouten
2024-04-29 19:30:44 +02:00
parent 8178afabdf
commit 2f31d1b16c
4 changed files with 14 additions and 14 deletions

View File

@@ -53,9 +53,9 @@ persistence:
credentials:
mys3:
type: s3
url: ""
url: "test"
region: ""
bucket: ""
accessKey: ""
secretKey: ""
encrKey: ""
bucket: "test"
accessKey: "test"
secretKey: "test"
encrKey: "test"

View File

@@ -53,9 +53,9 @@ persistence:
credentials:
mys3:
type: s3
url: ""
url: "test"
region: ""
bucket: ""
accessKey: ""
secretKey: ""
encrKey: ""
bucket: "test"
accessKey: "test"
secretKey: "test"
encrKey: "test"

View File

@@ -15,7 +15,7 @@ maintainers:
name: common
sources: null
type: library
version: 22.0.1
version: 22.0.2
annotations:
artifacthub.io/category: "integration-delivery"
artifacthub.io/license: "BUSL-1.1"

View File

@@ -97,14 +97,14 @@
{{- include "tc.v1.common.lib.metadata.validation" (dict "objectData" $volsyncData "caller" "PVC - VolSync") -}}
{{/* Create Secret for VolSync */}}
{{- $volsyncSecretName := printf "%s-volsync-%s" $objectData.name $volsync.name -}}
{{- $volsyncSecretName := printf "%s-volsync-%s" $objectData.name $volsyncData.name -}}
{{- $_ := set $volsyncData "repository" $volsyncSecretName -}}
{{- $credentials := get $.Values.credentials $volsync.credentials -}}
{{- $resticrepository := printf "s3:%s/%s/volsync/%s" $credentials.url $credentials.bucket $.Release.Name $volsyncSecretName -}}
{{- $resticrepository := printf "s3:%s/%s/%s/volsync/%s-volsync-%s" $credentials.url $credentials.bucket $.Release.Name $objectData.shortName $volsyncData.name -}}
{{- if $credentials.path -}}
{{- $resticrepository = printf "s3:%s/%s/%s/volsync/%s" $credentials.url $credentials.bucket ( $credentials.path | trimSuffix "/" ) $.Release.Name $volsyncSecretName -}}
{{- $resticrepository = printf "s3:%s/%s/%s/%s/volsync/%s-volsync-%s" $credentials.url $credentials.bucket ( $credentials.path | trimSuffix "/" ) $.Release.Name $objectData.shortName $volsyncData.name -}}
{{- end -}}
{{- $resticpassword := ( $credentials.encrKey | default $.Release.Name ) -}}