From c39a4f7ab28bb3be335acc8b0df94ea6ffb73ef5 Mon Sep 17 00:00:00 2001 From: "Alexander \"Ace\" Olofsson" Date: Sun, 18 Dec 2022 07:25:48 +0100 Subject: [PATCH] peertube: Fix loading of existing secret data --- charts/peertube/Chart.yaml | 2 +- charts/peertube/templates/secrets.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/peertube/Chart.yaml b/charts/peertube/Chart.yaml index ea668ec..720049e 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.2.0 +version: 0.2.1 appVersion: 5.0.0 maintainers: - name: Alexander Olofsson diff --git a/charts/peertube/templates/secrets.yaml b/charts/peertube/templates/secrets.yaml index fb937c9..a04c9be 100644 --- a/charts/peertube/templates/secrets.yaml +++ b/charts/peertube/templates/secrets.yaml @@ -12,9 +12,9 @@ data: {{- if .Values.config.secret }} PEERTUBE_SECRET: {{ .Values.config.secret | b64enc }} {{- else }} -{{- $existing := (lookup "v1" "Secret" .Release.Namespace (include "peertube.fullname" .)).data.PEERTUBE_SECRET }} +{{- $existing := (lookup "v1" "Secret" .Release.Namespace (include "peertube.fullname" .)) }} {{- if $existing }} - PEERTUBE_SECRET: {{ $existing }} + PEERTUBE_SECRET: {{ $existing.data.PEERTUBE_SECRET }} {{- else }} PEERTUBE_SECRET: {{ (include "peertube.randHex" 32) | b64enc }} {{- end }}