diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index f6001abb..71f404e2 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 6.1.1 +version: 6.1.2 appVersion: 30.0.1 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/charts/nextcloud/templates/_helpers.tpl b/charts/nextcloud/templates/_helpers.tpl index 5efea5d1..316b467b 100644 --- a/charts/nextcloud/templates/_helpers.tpl +++ b/charts/nextcloud/templates/_helpers.tpl @@ -307,7 +307,8 @@ S3 as primary object store env vars secretKeyRef: name: {{ .Values.nextcloud.objectStore.s3.existingSecret }} key: {{ .Values.nextcloud.objectStore.s3.secretKeys.sse_c_key }} -{{- else }} +{{- end }} +{{- if and (gt (len .Values.nextcloud.objectStore.s3.sse_c_key) 0) (lt (len .Values.nextcloud.objectStore.s3.secretKeys.sse_c_key) 1) }} - name: OBJECTSTORE_S3_SSE_C_KEY value: {{ .Values.nextcloud.objectStore.s3.sse_c_key | quote }} {{- end }}