fix resources for copy-app-data init container

Upgrading charts fail w/ 'Error: UPGRADE FAILED: template: open-webui/templates/workload-manager.yaml:47:24: executing open-webui/templates/workload-manager.yaml at <.Values.copyAppData.resources>: nil pointer evaluating interface {}.resources'
This commit is contained in:
Oliver Meyer 2024-11-26 07:45:46 +01:00
parent db99d5cafe
commit 373b4c8042
2 changed files with 7 additions and 3 deletions

View File

@ -41,12 +41,12 @@ spec:
{{- end }}
command: ['sh', '-c', 'cp -R -n /app/backend/data/* /tmp/app-data/']
{{- with .Values.containerSecurityContext }}
{{- with .Values.copyAppData.resources }}
resources: {{- toYaml . | nindent 10 }}
{{- end }}
securityContext:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.copyAppData.resources }}
resources: {{- toYaml . | nindent 10 }}
{{- end }}
volumeMounts:
- name: data
mountPath: /tmp/app-data

View File

@ -56,6 +56,10 @@ imagePullSecrets: []
# - name: myRegistryKeySecretName
resources: {}
copyAppData:
resources: {}
ingress:
enabled: false
class: ""