Add support for additional authentication secrets in deployment template

This commit is contained in:
Florian Weber 2025-05-08 14:16:15 +02:00
parent e0e2e10fd1
commit 9eaaf4a8cc
Signed by: f.weber
GPG Key ID: A1C85EB19014A2D3

View File

@ -84,6 +84,12 @@ spec:
- secretRef: - secretRef:
name: {{ include "bookstack.secret" . }} name: {{ include "bookstack.secret" . }}
{{- end }} {{- 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: ports:
- containerPort: 8080 - containerPort: 8080
name: bookstack-http name: bookstack-http