mirror of
https://github.com/open-webui/helm-charts
synced 2025-06-04 03:49:27 +00:00
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:
parent
db99d5cafe
commit
373b4c8042
@ -41,12 +41,12 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
command: ['sh', '-c', 'cp -R -n /app/backend/data/* /tmp/app-data/']
|
command: ['sh', '-c', 'cp -R -n /app/backend/data/* /tmp/app-data/']
|
||||||
{{- with .Values.containerSecurityContext }}
|
{{- with .Values.containerSecurityContext }}
|
||||||
{{- with .Values.copyAppData.resources }}
|
|
||||||
resources: {{- toYaml . | nindent 10 }}
|
|
||||||
{{- end }}
|
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml . | nindent 10 }}
|
{{- toYaml . | nindent 10 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with .Values.copyAppData.resources }}
|
||||||
|
resources: {{- toYaml . | nindent 10 }}
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
mountPath: /tmp/app-data
|
mountPath: /tmp/app-data
|
||||||
|
@ -56,6 +56,10 @@ imagePullSecrets: []
|
|||||||
# - name: myRegistryKeySecretName
|
# - name: myRegistryKeySecretName
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
|
|
||||||
|
copyAppData:
|
||||||
|
resources: {}
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
class: ""
|
class: ""
|
||||||
|
Loading…
Reference in New Issue
Block a user