From 623d36db3f482cd8be74a9021d5b782f43c982be Mon Sep 17 00:00:00 2001 From: jackhauGR Date: Mon, 19 May 2025 17:43:49 +0100 Subject: [PATCH] feat(pipelines): add support for commonEnvVars for shared environment variables across environments --- charts/pipelines/Chart.yaml | 2 +- charts/pipelines/README.md | 3 ++- charts/pipelines/templates/deployment.yaml | 3 +++ charts/pipelines/values.yaml | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/pipelines/Chart.yaml b/charts/pipelines/Chart.yaml index 4ac60cc..cc026e9 100644 --- a/charts/pipelines/Chart.yaml +++ b/charts/pipelines/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: pipelines -version: 0.6.0 +version: 0.7.0 appVersion: "alpha" home: https://github.com/open-webui/pipelines diff --git a/charts/pipelines/README.md b/charts/pipelines/README.md index 776abea..14426e6 100644 --- a/charts/pipelines/README.md +++ b/charts/pipelines/README.md @@ -1,6 +1,6 @@ # pipelines -![Version: 0.6.0](https://img.shields.io/badge/Version-0.6.0-informational?style=flat-square) ![AppVersion: alpha](https://img.shields.io/badge/AppVersion-alpha-informational?style=flat-square) +![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![AppVersion: alpha](https://img.shields.io/badge/AppVersion-alpha-informational?style=flat-square) Pipelines: UI-Agnostic OpenAI API Plugin Framework @@ -33,6 +33,7 @@ helm upgrade --install open-webui open-webui/pipelines | affinity | object | `{}` | Affinity for pod assignment | | annotations | object | `{}` | | | clusterDomain | string | `"cluster.local"` | Value of cluster domain | +| commonEnvVars | list | `[]` | Additional environments variables on the output Deployment definition, common across environments | | containerSecurityContext | object | `{}` | Configure container security context ref: | | extraEnvVars | list | `[{"name":"PIPELINES_URLS","value":"https://github.com/open-webui/pipelines/blob/main/examples/filters/detoxify_filter_pipeline.py"}]` | Additional environments variables on the output Deployment definition. These are used to pull initial Pipeline files, and help configure Pipelines with required values (e.g. Langfuse API keys) | | extraEnvVars[0] | object | `{"name":"PIPELINES_URLS","value":"https://github.com/open-webui/pipelines/blob/main/examples/filters/detoxify_filter_pipeline.py"}` | Example pipeline to pull and load on deployment startup, see current pipelines here: https://github.com/open-webui/pipelines/blob/main/examples | diff --git a/charts/pipelines/templates/deployment.yaml b/charts/pipelines/templates/deployment.yaml index e730a47..e35a061 100644 --- a/charts/pipelines/templates/deployment.yaml +++ b/charts/pipelines/templates/deployment.yaml @@ -73,6 +73,9 @@ spec: {{- if .Values.extraEnvVars }} {{- toYaml .Values.extraEnvVars | nindent 8 }} {{- end }} + {{- if .Values.commonEnvVars }} + {{- toYaml .Values.commonEnvVars | nindent 8 }} + {{- end }} tty: true {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/pipelines/values.yaml b/charts/pipelines/values.yaml index de31382..8a356f3 100644 --- a/charts/pipelines/values.yaml +++ b/charts/pipelines/values.yaml @@ -118,6 +118,9 @@ extraEnvVars: # - name: LANGFUSE_HOST # value: https://us.cloud.langfuse.com +# -- Additional environments variables on the output Deployment definition, common across environments. +commonEnvVars: [] + # -- Configure container volume mounts # ref: volumeMounts: []