feat: update Helm chart for FastAPI authentication with dashboard password support
This commit is contained in:
@@ -47,6 +47,13 @@ spec:
|
||||
- name: TZ
|
||||
value: {{ .Values.timezone | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.dashboardPassword }}
|
||||
- name: KRAWL_DASHBOARD_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "krawl.fullname" . }}-dashboard
|
||||
key: dashboard-password
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: config
|
||||
mountPath: /app/config.yaml
|
||||
|
||||
11
helm/templates/secret.yaml
Normal file
11
helm/templates/secret.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
{{- if .Values.dashboardPassword }}
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: {{ include "krawl.fullname" . }}-dashboard
|
||||
labels:
|
||||
{{- include "krawl.labels" . | nindent 4 }}
|
||||
type: Opaque
|
||||
stringData:
|
||||
dashboard-password: {{ .Values.dashboardPassword | quote }}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user