07070100000000000081a400000000000000000000000168dfff3c000001d1000000000000000000000000000000000000002a00000000patches/1-Standardize-global-values.patchdiff --git a/packages/open-webui-pipelines/0/values.yaml b/packages/open-webui-pipelines/0/values.yaml index 5ee4459..2d5e2f1 100644 --- a/packages/open-webui-pipelines/0/values.yaml +++ b/packages/open-webui-pipelines/0/values.yaml @@ -1,3 +1,8 @@ +global: + # -- Global override for container image registry + imageRegistry: "" + # -- Global override for container image registry pull secrets + imagePullSecrets: [] nameOverride: "" namespaceOverride: "" 07070100000001000081a400000000000000000000000168dfff3c000005e9000000000000000000000000000000000000002d00000000patches/2-Standardize-imagePullSecrets.patchdiff --git a/packages/open-webui-pipelines/0/templates/_helpers.tpl b/packages/open-webui-pipelines/0/templates/_helpers.tpl index a33f23a..d92ae8d 100644 --- a/packages/open-webui-pipelines/0/templates/_helpers.tpl +++ b/packages/open-webui-pipelines/0/templates/_helpers.tpl @@ -63,3 +63,35 @@ Create the default port to use on the service if none is defined in values {{- define "pipelines.servicePort" -}} {{- .Values.service.port | default 9099 }} {{- end }} + +{{/* +Return the proper Docker Image Registry Secret Names +*/}} +{{- define "pipelines.imagePullSecrets" -}} +{{/* +Helm 2.11 supports the assignment of a value to a variable defined in a different scope, +but Helm 2.9 and 2.10 does not support it, so we need to implement this if-else logic. +Also, we can not use a single if because lazy evaluation is not an option +*/}} +{{- if .Values.global }} +{{- if .Values.global.imagePullSecrets }} +imagePullSecrets: +{{- range .Values.global.imagePullSecrets }} + {{- $imagePullSecrets := list }} + {{- if kindIs "string" . }} + {{- $imagePullSecrets = append $imagePullSecrets (dict "name" .) }} + {{- else }} + {{- $imagePullSecrets = append $imagePullSecrets . }} + {{- end }} + {{- toYaml $imagePullSecrets | nindent 2 }} +{{- end }} +{{- else if .Values.imagePullSecrets }} +imagePullSecrets: + {{ toYaml .Values.imagePullSecrets }} +{{- end -}} +{{- else if .Values.imagePullSecrets }} +imagePullSecrets: + {{ toYaml .Values.imagePullSecrets }} +{{- end -}} +{{- end -}} + 07070100000002000081a400000000000000000000000168dfff3c0000074c000000000000000000000000000000000000002a00000000patches/3-Standardize-imageRegistry.patchdiff --git a/packages/open-webui-pipelines/0/templates/deployment.yaml b/packages/open-webui-pipelines/0/templates/deployment.yaml index 4bb2d78..8cc510a 100644 --- a/packages/open-webui-pipelines/0/templates/deployment.yaml +++ b/packages/open-webui-pipelines/0/templates/deployment.yaml @@ -30,10 +30,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: - {{- with .Values.imagePullSecrets }} - imagePullSecrets: - {{- toYaml . | nindent 8 }} - {{- end }} + {{- include "pipelines.imagePullSecrets" . | nindent 6 }} {{- with .Values.extraInitContainers }} initContainers: {{- toYaml . | nindent 8 }} @@ -45,10 +42,8 @@ spec: {{- end }} containers: - name: {{ .Chart.Name }} - {{- with .Values.image }} - image: {{ .repository }}:{{ .tag | default $.Chart.AppVersion }} - imagePullPolicy: {{ .pullPolicy }} - {{- end }} + image: "{{ with (coalesce .Values.global.imageRegistry .Values.image.registry) }}{{ . }}/{{ end }}{{ .Values.image.repository }}:{{ .Values.image.tag | default $.Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: http containerPort: {{ .Values.service.containerPort }} diff --git a/packages/open-webui-pipelines/0/values.yaml b/packages/open-webui-pipelines/0/values.yaml index 5ee4459..40f2171 100644 --- a/packages/open-webui-pipelines/0/values.yaml +++ b/packages/open-webui-pipelines/0/values.yaml @@ -11,8 +11,9 @@ replicaCount: 1 # -- Strategy for updating the deployment strategy: {} image: - repository: ghcr.io/open-webui/pipelines - tag: main + registry: dp.apps.rancher.io + repository: containers/open-webui-pipelines + tag: 0.20250329.151219 pullPolicy: Always # -- Configure imagePullSecrets to use private registry 07070100000003000081a400000000000000000000000168dfff3c00000398000000000000000000000000000000000000001700000000patches/Chart.yaml.tpl# SPDX-License-Identifier: MIT #!BuildTag: charts/open-webui-pipelines:${VERSION}-%RELEASE% #!BuildTag: charts/open-webui-pipelines:${VERSION} annotations: licenses: MIT helm.sh/images: | - image: ${CONTAINER_REGISTRY}/containers/open-webui-pipelines:${APP_VERSION} name: open-webui-pipelines apiVersion: v2 appVersion: ${APP_VERSION} description: 'Pipelines bring modular, customizable workflows to any UI client supporting OpenAI API specs and much more! Easily extend functionalities, integrate unique logic, and create dynamic workflows with just a few lines of code.' home: https://apps.rancher.io/applications/open-webui-pipelines icon: https://apps.rancher.io/logos/open-webui-pipelines.png keywords: - ai - llm - chat - web-ui sources: - https://github.com/open-webui/pipelines name: open-webui-pipelines version: ${VERSION} maintainers: - url: https://www.suse.com/ name: SUSE LLC 07070100000004000081a400000000000000000000000168dfff3c0000006d000000000000000000000000000000000000001d00000000patches/values-suse.yaml.tplimage: registry: ${CONTAINER_REGISTRY} repository: containers/open-webui-pipelines tag: ${APP_VERSION} 07070100000005000041ed00000000000000000000000168dfff3c00000000000000000000000000000000000000000000000800000000patches07070100000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000b00000000TRAILER!!!