Skip to content

Commit

Permalink
Merge pull request #21 from plenti-chris-fowles/main
Browse files Browse the repository at this point in the history
render env vars as yaml
  • Loading branch information
tjbck authored May 27, 2024
2 parents 4bd88a2 + 65c53ff commit 2c51864
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
17 changes: 8 additions & 9 deletions charts/open-webui/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: v2
name: open-webui
version: 2.0.2
version: 2.1.0
appVersion: "latest"

home: https://www.openwebui.com/
icon: https://raw.githubusercontent.com/open-webui/open-webui/main/static/favicon.png

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
Expand All @@ -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
7 changes: 2 additions & 5 deletions charts/open-webui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
14 changes: 9 additions & 5 deletions charts/open-webui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []

Expand Down Expand Up @@ -45,7 +44,7 @@ persistence:
existingClaim: ""
# -- If using multiple replicas, you must update accessModes to ReadWriteMany
accessModes:
- ReadWriteOnce
- ReadWriteOnce
storageClass: ""
selector: {}
annotations: {}
Expand All @@ -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"

0 comments on commit 2c51864

Please sign in to comment.