From 3e16c22e08b4e655b6a6526bb13807159a7e3a97 Mon Sep 17 00:00:00 2001 From: jyje Date: Tue, 18 Feb 2025 16:28:58 +0900 Subject: [PATCH] feat(pipelines): add volumeMounts and volumes - need to bump chart version --- charts/pipelines/README.md | 2 ++ charts/pipelines/templates/deployment.yaml | 6 ++++++ charts/pipelines/values.yaml | 18 ++++++++++++++++++ 3 files changed, 26 insertions(+) diff --git a/charts/pipelines/README.md b/charts/pipelines/README.md index c129265..964492b 100644 --- a/charts/pipelines/README.md +++ b/charts/pipelines/README.md @@ -70,6 +70,8 @@ helm upgrade --install open-webui open-webui/pipelines | serviceAccount.automountServiceAccountToken | bool | `false` | | | serviceAccount.enable | bool | `true` | | | tolerations | list | `[]` | Tolerations for pod assignment | +| volumeMounts | list | `[]` | Configure container volume mounts | +| volumes | list | `[]` | Configure pod volumes | ---------------------------------------------- diff --git a/charts/pipelines/templates/deployment.yaml b/charts/pipelines/templates/deployment.yaml index 8a2de4d..0c57930 100644 --- a/charts/pipelines/templates/deployment.yaml +++ b/charts/pipelines/templates/deployment.yaml @@ -50,6 +50,9 @@ spec: volumeMounts: - name: data mountPath: /app/pipelines + {{- with .Values.volumeMounts }} + {{- toYaml . | nindent 8 }} + {{- end }} env: {{- if .Values.extraEnvVars }} {{- toYaml .Values.extraEnvVars | nindent 8 }} @@ -80,3 +83,6 @@ spec: persistentVolumeClaim: claimName: {{ include "pipelines.name" . }} {{- end }} + {{- with .Values.volumes }} + {{- toYaml . | nindent 6 }} + {{- end }} diff --git a/charts/pipelines/values.yaml b/charts/pipelines/values.yaml index 0579a0a..d94deb9 100644 --- a/charts/pipelines/values.yaml +++ b/charts/pipelines/values.yaml @@ -88,6 +88,24 @@ extraEnvVars: # - name: LANGFUSE_HOST # value: https://us.cloud.langfuse.com +# -- Configure container volume mounts +# ref: +volumeMounts: [] + # - name: "" + # mountPath: "" + +# -- Configure pod volumes +# ref: +volumes: [] +# - name: "" +# configMap: +# name: "" +# - name: "" +# secret: +# name: "" +# - name: "" +# emptyDir: {} + # -- Extra resources to deploy with Open WebUI Pipelines extraResources: []