Also apply the container security context to the initContainer (#54)

This commit is contained in:
chgl 2024-07-28 23:48:48 +02:00 committed by GitHub
parent b7b6bc2022
commit de2f698c72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,6 @@
apiVersion: v2
name: open-webui
version: 3.1.0
version: 3.1.1
appVersion: "v0.3.8"
home: https://www.openwebui.com/

View File

@ -36,6 +36,10 @@ spec:
imagePullPolicy: {{ .pullPolicy }}
{{- end }}
command: ['sh', '-c', 'cp -R /app/backend/data/* /tmp/app-data/']
{{- with .Values.containerSecurityContext }}
securityContext:
{{- toYaml . | nindent 10 }}
{{- end }}
volumeMounts:
- name: data
mountPath: /tmp/app-data