From 9eaaf4a8cc3bb0b7e344eee17647fb0ebd58ec51 Mon Sep 17 00:00:00 2001 From: Florian Weber Date: Thu, 8 May 2025 14:16:15 +0200 Subject: [PATCH] Add support for additional authentication secrets in deployment template --- bookstack/templates/deployment.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bookstack/templates/deployment.yaml b/bookstack/templates/deployment.yaml index adaac7c..02a9d80 100644 --- a/bookstack/templates/deployment.yaml +++ b/bookstack/templates/deployment.yaml @@ -84,6 +84,12 @@ spec: - secretRef: name: {{ include "bookstack.secret" . }} {{- end }} + {{- range $key, $conf := .Values.bookstack.auth }} + {{- if and (ne $key "method") (ne $key "auto.initiate") ($conf.enabled) $conf.existingSecret }} + - secretRef: + name: {{ $conf.existingSecret }} + {{- end }} + {{- end }} ports: - containerPort: 8080 name: bookstack-http