diff --git a/charts/peertube/Chart.yaml b/charts/peertube/Chart.yaml index 9e61abd..d0a4c18 100644 --- a/charts/peertube/Chart.yaml +++ b/charts/peertube/Chart.yaml @@ -5,7 +5,7 @@ description: Free software to take back control of your videos icon: https://upload.wikimedia.org/wikipedia/commons/2/2b/Logo_de_PeerTube.svg type: application -version: 0.3.0 +version: 0.3.1 appVersion: 5.0.0 maintainers: - name: Alexander Olofsson diff --git a/charts/peertube/templates/secrets.yaml b/charts/peertube/templates/secrets.yaml index a04c9be..fa80461 100644 --- a/charts/peertube/templates/secrets.yaml +++ b/charts/peertube/templates/secrets.yaml @@ -13,7 +13,7 @@ data: PEERTUBE_SECRET: {{ .Values.config.secret | b64enc }} {{- else }} {{- $existing := (lookup "v1" "Secret" .Release.Namespace (include "peertube.fullname" .)) }} -{{- if $existing }} +{{- if (and $existing $existing.data $existing.data.PEERTUBE_SECRET) }} PEERTUBE_SECRET: {{ $existing.data.PEERTUBE_SECRET }} {{- else }} PEERTUBE_SECRET: {{ (include "peertube.randHex" 32) | b64enc }}