Add updateStrategy for workload manager

To add update strategy, choose 'strategy' for 'Deployment/spec.strategy' and 'StatefulSet/spec.updateStrategy'. Update samver from 4.0.6 to 4.1.0 with minor spec changes
This commit is contained in:
jyje 2024-12-06 04:57:41 +09:00
parent 2ef9234739
commit 7c6aa4fc19
No known key found for this signature in database
GPG Key ID: CFEECE847750DA12
4 changed files with 15 additions and 3 deletions

View File

@ -1,6 +1,6 @@
apiVersion: v2
name: open-webui
version: 4.0.6
version: 4.1.0
appVersion: 0.4.7
home: https://www.openwebui.com/
icon: >-

View File

@ -1,6 +1,6 @@
# open-webui
![Version: 4.0.6](https://img.shields.io/badge/Version-4.0.6-informational?style=flat-square) ![AppVersion: 0.4.7](https://img.shields.io/badge/AppVersion-0.4.7-informational?style=flat-square)
![Version: 4.1.0](https://img.shields.io/badge/Version-4.1.0-informational?style=flat-square) ![AppVersion: 0.4.7](https://img.shields.io/badge/AppVersion-0.4.7-informational?style=flat-square)
Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋
@ -75,6 +75,7 @@ helm upgrade --install open-webui open-webui/open-webui
| podAnnotations | object | `{}` | |
| podSecurityContext | object | `{}` | Configure pod security context ref: <https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-containe> |
| replicaCount | int | `1` | |
| strategy | object | `{}` | |
| resources | object | `{}` | |
| service | object | `{"annotations":{},"containerPort":8080,"labels":{},"loadBalancerClass":"","nodePort":"","port":80,"type":"ClusterIP"}` | Service values to expose Open WebUI pods to cluster |
| serviceAccount.annotations | object | `{}` | |

9
charts/open-webui/templates/workload-manager.yaml Normal file → Executable file
View File

@ -20,6 +20,15 @@ spec:
selector:
matchLabels:
{{- include "open-webui.selectorLabels" . | nindent 6 }}
{{- if .Values.strategy }}
{{- if .Values.persistence.enabled }}
updateStrategy:
{{- toYaml .Values.strategy | nindent 4 }}
{{- else }}
strategy:
{{- toYaml .Values.strategy | nindent 4 }}
{{- end }}
{{- end }}
template:
metadata:
labels:

View File

@ -37,7 +37,9 @@ clusterDomain: cluster.local
annotations: {}
podAnnotations: {}
replicaCount: 1
# -- Open WebUI image tags can be found here: https://github.com/open-webui/open-webui/pkgs/container/open-webui
# -- Strategy for updating the workload manager: deployment or statefulset
strategy: {}
# -- Open WebUI image tags can be found here: https://github.com/open-webui/open-webui
image:
repository: ghcr.io/open-webui/open-webui
tag: ""