From 72dad958af1bfdb8f0aa0110a217cc6c81f9aadd Mon Sep 17 00:00:00 2001 From: Matthieu Charreire Date: Thu, 13 Jun 2024 18:14:25 +0200 Subject: [PATCH] fix: use StatefulSet if persistence is enabled --- charts/open-webui/Chart.yaml | 4 ++-- .../templates/{deployment.yaml => workload-manager.yaml} | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) rename charts/open-webui/templates/{deployment.yaml => workload-manager.yaml} (97%) diff --git a/charts/open-webui/Chart.yaml b/charts/open-webui/Chart.yaml index 7c00792..a660d20 100644 --- a/charts/open-webui/Chart.yaml +++ b/charts/open-webui/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: open-webui -version: 3.0.1 -appVersion: "0.2.5" +version: 3.0.2 +appVersion: "v0.3.4" home: https://www.openwebui.com/ icon: https://raw.githubusercontent.com/open-webui/open-webui/main/static/favicon.png diff --git a/charts/open-webui/templates/deployment.yaml b/charts/open-webui/templates/workload-manager.yaml similarity index 97% rename from charts/open-webui/templates/deployment.yaml rename to charts/open-webui/templates/workload-manager.yaml index f8a171f..8a20bb1 100644 --- a/charts/open-webui/templates/deployment.yaml +++ b/charts/open-webui/templates/workload-manager.yaml @@ -1,5 +1,9 @@ apiVersion: apps/v1 +{{- if .Values.persistence.enabled }} +kind: StatefulSet +{{- else }} kind: Deployment +{{- end }} metadata: name: {{ include "open-webui.name" . }} labels: