Add initial Helm chart for BookStack deployment with configuration files

This commit is contained in:
2025-05-07 18:59:58 +02:00
parent b62c4ac2ac
commit a5a9f15a8f
17 changed files with 729 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
{{- /*
Einmaliges Secret: wird nur angelegt, wenn es noch nicht existiert (lookup).
*/}}
{{- $secretName := include "bookstack.app-key" .}}
{{- if not (lookup "v1" "Secret" .Release.Namespace $secretName) }}
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ $secretName }}
namespace: {{ .Release.Namespace }}
annotations:
helm.sh/resource-policy: keep
labels:
{{- include "bookstack.labels" . | nindent 4 }}
app.kubernetes.io/component: bookstack-app
data:
app-key: {{ default (randAlphaNum 32) .Values.bookstack.config.app.key | b64enc | quote }}
{{- end }}