render envVars as yaml (allow valueFrom)

This commit is contained in:
Chris Fowles 2024-05-21 14:10:07 +10:00
parent 79626f0828
commit d0e695b57c
3 changed files with 18 additions and 18 deletions

View File

@ -8,15 +8,15 @@ icon: https://raw.githubusercontent.com/open-webui/open-webui/main/static/favico
description: "Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋"
keywords:
- llm
- chat
- web-ui
- llm
- chat
- web-ui
sources:
- https://github.com/open-webui/helm-charts
- https://github.com/open-webui/open-webui/pkgs/container/open-webui
- https://github.com/otwld/ollama-helm/
- https://hub.docker.com/r/ollama/ollama
- https://github.com/open-webui/helm-charts
- https://github.com/open-webui/open-webui/pkgs/container/open-webui
- https://github.com/otwld/ollama-helm/
- https://hub.docker.com/r/ollama/ollama
annotations:
licenses: MIT
@ -26,7 +26,6 @@ dependencies:
repository: https://otwld.github.io/ollama-helm/
version: ">=0.24.0"
import-values:
- child: service
parent: ollama.service
condition: ollama.enabled

View File

@ -42,11 +42,8 @@ spec:
env:
- name: OLLAMA_BASE_URLS
value: {{ include "ollamaBaseUrls" . | quote }}
{{- with .Values.extraEnvVars }}
{{- range . }}
- name: {{ .name }}
value: {{ .value | quote }}
{{- end }}
{{- if .Values.extraEnvVars }}
{{- toYaml .Values.extraEnvVars | nindent 8 }}
{{- end }}
tty: true
{{- with .Values.nodeSelector }}

View File

@ -15,7 +15,6 @@ ollama:
# persistentVolume:
# enabled: true
# -- A list of Ollama API endpoints. These can be added in lieu of automatically installing the Ollama Helm chart, or in addition to it.
ollamaUrls: []
@ -45,7 +44,7 @@ persistence:
existingClaim: ""
# -- If using multiple replicas, you must update accessModes to ReadWriteMany
accessModes:
- ReadWriteOnce
- ReadWriteOnce
storageClass: ""
selector: {}
annotations: {}
@ -69,6 +68,11 @@ service:
loadBalancerClass: ""
# -- Additional environments variables on the output Deployment definition.
extraEnvVars: []
# - name: OLLAMA_DEBUG
# value: "1"
extraEnvVars:
- name: OPENAI_API_KEY
valueFrom:
secretKeyRef:
name: openai-api-key
key: api-key
- name: OLLAMA_DEBUG
value: "1"