From a79f362f7c3fbaf23e3f13fe9b97b7a5cd3e47f1 Mon Sep 17 00:00:00 2001 From: this-is-tobi Date: Wed, 16 Apr 2025 02:00:33 +0200 Subject: [PATCH] feat: handle envFrom in open-webui chart values --- charts/open-webui/Chart.yaml | 2 +- charts/open-webui/README.md | 5 +++-- charts/open-webui/templates/workload-manager.yaml | 4 ++++ charts/open-webui/values.yaml | 9 ++++++++- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/charts/open-webui/Chart.yaml b/charts/open-webui/Chart.yaml index 782fc87..bc99422 100644 --- a/charts/open-webui/Chart.yaml +++ b/charts/open-webui/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: open-webui -version: 6.3.0 +version: 6.4.0 appVersion: 0.6.4 home: https://www.openwebui.com/ icon: >- diff --git a/charts/open-webui/README.md b/charts/open-webui/README.md index 06cc465..0b5c158 100644 --- a/charts/open-webui/README.md +++ b/charts/open-webui/README.md @@ -1,6 +1,6 @@ # open-webui -![Version: 6.3.0](https://img.shields.io/badge/Version-6.3.0-informational?style=flat-square) ![AppVersion: 0.6.4](https://img.shields.io/badge/AppVersion-0.6.4-informational?style=flat-square) +![Version: 6.4.0](https://img.shields.io/badge/Version-6.4.0-informational?style=flat-square) ![AppVersion: 0.6.4](https://img.shields.io/badge/AppVersion-0.6.4-informational?style=flat-square) Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋 @@ -115,6 +115,7 @@ helm upgrade --install open-webui open-webui/open-webui | copyAppData.resources | object | `{}` | | | databaseUrl | string | `""` | Configure database URL, needed to work with Postgres (example: `postgresql://:@:/`), leave empty to use the default sqlite database | | enableOpenaiApi | bool | `true` | Enables the use of OpenAI APIs | +| extraEnvFrom | list | `[]` | Env vars added from configmap or secret to the Open WebUI deployment. Most up-to-date environment variables can be found here: https://docs.openwebui.com/getting-started/env-configuration/ (caution: `extraEnvVars` will take precedence over the value from `extraEnvFrom`) | | extraEnvVars | list | `[{"name":"OPENAI_API_KEY","value":"0p3n-w3bu!"}]` | Env vars added to the Open WebUI deployment. Most up-to-date environment variables can be found here: https://docs.openwebui.com/getting-started/env-configuration/ | | extraEnvVars[0] | object | `{"name":"OPENAI_API_KEY","value":"0p3n-w3bu!"}` | Default API key value for Pipelines. Should be updated in a production deployment, or be changed to the required API key if not using Pipelines | | extraInitContainers | list | `[]` | Additional init containers to add to the deployment/statefulset ref: | @@ -145,7 +146,7 @@ helm upgrade --install open-webui open-webui/open-webui | persistence.accessModes | list | `["ReadWriteOnce"]` | If using multiple replicas, you must update accessModes to ReadWriteMany | | persistence.annotations | object | `{}` | | | persistence.azure.container | string | `""` | Sets the container name for Azure Storage | -| persistence.azure.endpointUrl | string | `nil` | Sets the endpoint URL for Azure Storage | +| persistence.azure.endpointUrl | string | `""` | Sets the endpoint URL for Azure Storage | | persistence.azure.key | string | `""` | Set the access key for Azure Storage. Optional - if not provided, credentials will be taken from the environment. User credentials if run locally and Managed Identity if run in Azure services | | persistence.enabled | bool | `true` | | | persistence.existingClaim | string | `""` | Use existingClaim if you want to re-use an existing Open WebUI PVC instead of creating a new one | diff --git a/charts/open-webui/templates/workload-manager.yaml b/charts/open-webui/templates/workload-manager.yaml index 64013bf..94b3b17 100644 --- a/charts/open-webui/templates/workload-manager.yaml +++ b/charts/open-webui/templates/workload-manager.yaml @@ -270,6 +270,10 @@ spec: {{- if .Values.extraEnvVars }} {{- toYaml .Values.extraEnvVars | nindent 8 }} {{- end }} + {{- if .Values.extraEnvFrom }} + envFrom: + {{- toYaml .Values.extraEnvFrom | nindent 8 }} + {{- end }} tty: true {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/open-webui/values.yaml b/charts/open-webui/values.yaml index 61fe780..d44c163 100644 --- a/charts/open-webui/values.yaml +++ b/charts/open-webui/values.yaml @@ -233,7 +233,7 @@ persistence: bucket: "" azure: # -- Sets the endpoint URL for Azure Storage - endpointUrl: + endpointUrl: "" # -- Sets the container name for Azure Storage container: "" # -- Set the access key for Azure Storage. Optional - if not provided, credentials will be taken from the environment. User credentials if run locally and Managed Identity if run in Azure services @@ -293,6 +293,13 @@ extraEnvVars: # - name: OLLAMA_DEBUG # value: "1" +# -- Env vars added from configmap or secret to the Open WebUI deployment. Most up-to-date environment variables can be found here: https://docs.openwebui.com/getting-started/env-configuration/ (caution: `extraEnvVars` will take precedence over the value from `extraEnvFrom`) +extraEnvFrom: [] + # - configMapRef: + # name: my-config + # - secretRef: + # name: my-secret + # -- Configure runtime class # ref: runtimeClassName: ""