Merge pull request #122 from CiraciNicolo/fix(openwebui-namespace)

Add namespace explicitly for OpenWebUI Chart
This commit is contained in:
James W. 2024-12-12 20:00:29 -08:00 committed by GitHub
commit dc60612c27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 20 additions and 2 deletions

View File

@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: open-webui name: open-webui
version: 4.0.6 version: 4.0.7
appVersion: 0.4.7 appVersion: 0.4.7
home: https://www.openwebui.com/ home: https://www.openwebui.com/
icon: >- icon: >-

View File

@ -1,6 +1,6 @@
# open-webui # open-webui
![Version: 4.0.6](https://img.shields.io/badge/Version-4.0.6-informational?style=flat-square) ![AppVersion: 0.4.7](https://img.shields.io/badge/AppVersion-0.4.7-informational?style=flat-square) ![Version: 4.0.7](https://img.shields.io/badge/Version-4.0.7-informational?style=flat-square) ![AppVersion: 0.4.7](https://img.shields.io/badge/AppVersion-0.4.7-informational?style=flat-square)
Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋 Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋
@ -57,6 +57,7 @@ helm upgrade --install open-webui open-webui/open-webui
| ingress.host | string | `""` | | | ingress.host | string | `""` | |
| ingress.tls | bool | `false` | | | ingress.tls | bool | `false` | |
| nameOverride | string | `""` | | | nameOverride | string | `""` | |
| namespaceOverride | string | `""` | |
| nodeSelector | object | `{}` | Node labels for pod assignment. | | nodeSelector | object | `{}` | Node labels for pod assignment. |
| ollama.enabled | bool | `true` | Automatically install Ollama Helm chart from https://otwld.github.io/ollama-helm/. Use [Helm Values](https://github.com/otwld/ollama-helm/#helm-values) to configure | | ollama.enabled | bool | `true` | Automatically install Ollama Helm chart from https://otwld.github.io/ollama-helm/. Use [Helm Values](https://github.com/otwld/ollama-helm/#helm-values) to configure |
| ollama.fullnameOverride | string | `"open-webui-ollama"` | If enabling embedded Ollama, update fullnameOverride to your desired Ollama name value, or else it will use the default ollama.name value from the Ollama chart | | ollama.fullnameOverride | string | `"open-webui-ollama"` | If enabling embedded Ollama, update fullnameOverride to your desired Ollama name value, or else it will use the default ollama.name value from the Ollama chart |

View File

@ -1,3 +1,14 @@
{{/*
Allow the release namespace to be overridden for multi-namespace deployments in combined charts
*/}}
{{- define "open-webui.namespace" -}}
{{- if .Values.namespaceOverride -}}
{{- .Values.namespaceOverride -}}
{{- else -}}
{{- .Release.Namespace -}}
{{- end -}}
{{- end -}}
{{/* {{/*
Set the name of the Open WebUI resources Set the name of the Open WebUI resources
*/}} */}}

View File

@ -3,6 +3,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress kind: Ingress
metadata: metadata:
name: {{ include "open-webui.name" . }} name: {{ include "open-webui.name" . }}
namespace: {{ include "open-webui.namespace" . }}
labels: labels:
{{- include "open-webui.labels" . | nindent 4 }} {{- include "open-webui.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }} {{- with .Values.ingress.annotations }}

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: {{ include "open-webui.name" . }} name: {{ include "open-webui.name" . }}
namespace: {{ include "open-webui.namespace" . }}
labels: labels:
{{- include "open-webui.selectorLabels" . | nindent 4 }} {{- include "open-webui.selectorLabels" . | nindent 4 }}
{{- with .Values.persistence.annotations }} {{- with .Values.persistence.annotations }}

View File

@ -3,6 +3,7 @@ apiVersion: v1
kind: ServiceAccount kind: ServiceAccount
metadata: metadata:
name: {{ .Values.serviceAccount.name | default (include "open-webui.name" .) }} name: {{ .Values.serviceAccount.name | default (include "open-webui.name" .) }}
namespace: {{ include "open-webui.namespace" . }}
labels: labels:
{{- include "open-webui.labels" . | nindent 4 }} {{- include "open-webui.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }} {{- with .Values.serviceAccount.annotations }}

View File

@ -2,6 +2,7 @@ apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: {{ include "open-webui.name" . }} name: {{ include "open-webui.name" . }}
namespace: {{ include "open-webui.namespace" . }}
labels: labels:
{{- include "open-webui.labels" . | nindent 4 }} {{- include "open-webui.labels" . | nindent 4 }}
{{- with .Values.service.labels }} {{- with .Values.service.labels }}

View File

@ -6,6 +6,7 @@ kind: Deployment
{{- end }} {{- end }}
metadata: metadata:
name: {{ include "open-webui.name" . }} name: {{ include "open-webui.name" . }}
namespace: {{ include "open-webui.namespace" . }}
labels: labels:
{{- include "open-webui.labels" . | nindent 4 }} {{- include "open-webui.labels" . | nindent 4 }}
{{- with .Values.annotations }} {{- with .Values.annotations }}

View File

@ -1,4 +1,5 @@
nameOverride: "" nameOverride: ""
namespaceOverride: ""
ollama: ollama:
# -- Automatically install Ollama Helm chart from https://otwld.github.io/ollama-helm/. Use [Helm Values](https://github.com/otwld/ollama-helm/#helm-values) to configure # -- Automatically install Ollama Helm chart from https://otwld.github.io/ollama-helm/. Use [Helm Values](https://github.com/otwld/ollama-helm/#helm-values) to configure