From c64a6d983c19578be702775156f79b60fdc21053 Mon Sep 17 00:00:00 2001 From: yushao2 <36848472+yushao2@users.noreply.github.com> Date: Tue, 18 Mar 2025 19:06:45 +0800 Subject: [PATCH 1/2] add ability to customize redis container security context --- charts/open-webui/templates/websocket-redis.yaml | 4 ++++ charts/open-webui/values.yaml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/charts/open-webui/templates/websocket-redis.yaml b/charts/open-webui/templates/websocket-redis.yaml index 2982929..1606dad 100644 --- a/charts/open-webui/templates/websocket-redis.yaml +++ b/charts/open-webui/templates/websocket-redis.yaml @@ -57,6 +57,10 @@ spec: affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.websocket.redis.securityContext }} + securityContext: + {{- toYaml . | nindent 8 }} + {{- end }} --- apiVersion: v1 kind: Service diff --git a/charts/open-webui/values.yaml b/charts/open-webui/values.yaml index 980256d..02007df 100644 --- a/charts/open-webui/values.yaml +++ b/charts/open-webui/values.yaml @@ -90,6 +90,12 @@ websocket: # -- Redis affinity for pod assignment affinity: {} + # -- Redis security context + securityContext: + {} + # runAsUser: 999 + # runAsGroup: 1000 + # -- Deploys a Redis cluster with subchart 'redis' from bitnami redis-cluster: # -- Enable Redis installation From 7b349d2f089d7743692a2e68d3799b777182d17d Mon Sep 17 00:00:00 2001 From: yushao2 <36848472+yushao2@users.noreply.github.com> Date: Tue, 18 Mar 2025 23:54:58 +0800 Subject: [PATCH 2/2] update docs / chart --- charts/open-webui/Chart.yaml | 2 +- charts/open-webui/README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/open-webui/Chart.yaml b/charts/open-webui/Chart.yaml index aa981c7..2d0f020 100644 --- a/charts/open-webui/Chart.yaml +++ b/charts/open-webui/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: open-webui -version: 5.24.0 +version: 5.25.0 appVersion: 0.5.20 home: https://www.openwebui.com/ icon: >- diff --git a/charts/open-webui/README.md b/charts/open-webui/README.md index 4caf9b4..6429888 100644 --- a/charts/open-webui/README.md +++ b/charts/open-webui/README.md @@ -124,6 +124,7 @@ helm upgrade --install open-webui open-webui/open-webui | websocket.redis.pods | object | `{"annotations":{}}` | Redis pod | | websocket.redis.pods.annotations | object | `{}` | Redis pod annotations | | websocket.redis.resources | object | `{}` | Redis resources | +| websocket.redis.securityContext | object | `{}` | Redis security context ref: | | websocket.redis.service | object | `{"annotations":{},"containerPort":6379,"labels":{},"nodePort":"","port":6379,"type":"ClusterIP"}` | Redis service | | websocket.redis.service.annotations | object | `{}` | Redis service annotations | | websocket.redis.service.containerPort | int | `6379` | Redis container/target port |