From e8dbf957b1791727f44f0e2b87ee412315fd737e Mon Sep 17 00:00:00 2001
From: rbnis <5955614+rbnis@users.noreply.github.com>
Date: Fri, 21 Feb 2025 12:28:05 +0100
Subject: [PATCH] feat: add support for hostAliases
---
charts/open-webui/Chart.lock | 2 +-
charts/open-webui/Chart.yaml | 2 +-
charts/open-webui/README.md | 1 +
charts/open-webui/templates/workload-manager.yaml | 4 ++++
charts/open-webui/values.yaml | 3 +++
charts/pipelines/Chart.yaml | 2 +-
charts/pipelines/README.md | 1 +
charts/pipelines/templates/deployment.yaml | 4 ++++
charts/pipelines/values.yaml | 3 +++
9 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/charts/open-webui/Chart.lock b/charts/open-webui/Chart.lock
index dec4c56..67b1e11 100644
--- a/charts/open-webui/Chart.lock
+++ b/charts/open-webui/Chart.lock
@@ -4,7 +4,7 @@ dependencies:
version: 1.6.0
- name: pipelines
repository: https://helm.openwebui.com
- version: 0.2.0
+ version: 0.4.0
- name: tika
repository: https://apache.jfrog.io/artifactory/tika
version: 2.9.0
diff --git a/charts/open-webui/Chart.yaml b/charts/open-webui/Chart.yaml
index 067af4f..ecf4fb0 100644
--- a/charts/open-webui/Chart.yaml
+++ b/charts/open-webui/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: open-webui
-version: 5.18.0
+version: 5.19.0
appVersion: 0.5.16
home: https://www.openwebui.com/
icon: >-
diff --git a/charts/open-webui/README.md b/charts/open-webui/README.md
index 45c3661..26a7a04 100644
--- a/charts/open-webui/README.md
+++ b/charts/open-webui/README.md
@@ -105,6 +105,7 @@ helm upgrade --install open-webui open-webui/open-webui
| tika.enabled | bool | `false` | Automatically install Apache Tika to extend Open WebUI |
| tolerations | list | `[]` | Tolerations for pod assignment |
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pod assignment |
+| hostAliases | list | `[]` | HostAliases to be added to hosts-file of each container |
| volumeMounts | object | `{"container":[],"initContainer":[]}` | Configure container volume mounts ref: |
| volumes | list | `[]` | Configure pod volumes ref: |
| websocket.enabled | bool | `false` | Enables websocket support in Open WebUI with env `ENABLE_WEBSOCKET_SUPPORT` |
diff --git a/charts/open-webui/templates/workload-manager.yaml b/charts/open-webui/templates/workload-manager.yaml
index f296222..1a886a9 100644
--- a/charts/open-webui/templates/workload-manager.yaml
+++ b/charts/open-webui/templates/workload-manager.yaml
@@ -172,6 +172,10 @@ spec:
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
+ {{- with .Values.hostAliases }}
+ hostAliases:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
volumes:
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
- name: data
diff --git a/charts/open-webui/values.yaml b/charts/open-webui/values.yaml
index 00b9e89..a554d44 100644
--- a/charts/open-webui/values.yaml
+++ b/charts/open-webui/values.yaml
@@ -219,6 +219,9 @@ affinity: {}
# -- Topology Spread Constraints for pod assignment
topologySpreadConstraints: []
+# -- HostAliases to be added to hosts-file of each container
+hostAliases: []
+
# -- Service values to expose Open WebUI pods to cluster
service:
type: ClusterIP
diff --git a/charts/pipelines/Chart.yaml b/charts/pipelines/Chart.yaml
index 55a2ae3..016b1c9 100644
--- a/charts/pipelines/Chart.yaml
+++ b/charts/pipelines/Chart.yaml
@@ -1,6 +1,6 @@
apiVersion: v2
name: pipelines
-version: 0.3.0
+version: 0.4.0
appVersion: "alpha"
home: https://github.com/open-webui/pipelines
diff --git a/charts/pipelines/README.md b/charts/pipelines/README.md
index 181c0a8..2442639 100644
--- a/charts/pipelines/README.md
+++ b/charts/pipelines/README.md
@@ -71,6 +71,7 @@ helm upgrade --install open-webui open-webui/pipelines
| serviceAccount.enable | bool | `true` | |
| strategy | object | `{}` | Strategy for updating the deployment |
| tolerations | list | `[]` | Tolerations for pod assignment |
+| hostAliases | list | `[]` | HostAliases to be added to hosts-file of each container |
| volumeMounts | list | `[]` | Configure container volume mounts ref: |
| volumes | list | `[]` | Configure pod volumes ref: |
diff --git a/charts/pipelines/templates/deployment.yaml b/charts/pipelines/templates/deployment.yaml
index 671a4c1..3855929 100644
--- a/charts/pipelines/templates/deployment.yaml
+++ b/charts/pipelines/templates/deployment.yaml
@@ -74,6 +74,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
+ {{- with .Values.hostAliases }}
+ hostAliases:
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
volumes:
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
- name: data
diff --git a/charts/pipelines/values.yaml b/charts/pipelines/values.yaml
index b2bb746..2bd6dde 100644
--- a/charts/pipelines/values.yaml
+++ b/charts/pipelines/values.yaml
@@ -55,6 +55,9 @@ tolerations: []
# -- Affinity for pod assignment
affinity: {}
+# -- HostAliases to be added to hosts-file of each container
+hostAliases: []
+
service:
type: ClusterIP
annotations: {}