From 2ddceb06e7e9d76ccf577a78f3a8f5c87525bc33 Mon Sep 17 00:00:00 2001 From: Pranay Jain <136532602+pranay-jain-notable@users.noreply.github.com> Date: Thu, 13 Jun 2024 13:44:03 -0700 Subject: [PATCH] feat: Allow optional clusterIP and loadBalancerIP fields on the openwebui service template (#37) feat: Allow optional clusterIP and loadBalancerIP fields on the openwebui service template --- charts/open-webui/Chart.yaml | 2 +- charts/open-webui/README.md | 2 +- charts/open-webui/templates/service.yaml | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/charts/open-webui/Chart.yaml b/charts/open-webui/Chart.yaml index a660d20..32da9ab 100644 --- a/charts/open-webui/Chart.yaml +++ b/charts/open-webui/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: open-webui -version: 3.0.2 +version: 3.0.3 appVersion: "v0.3.4" home: https://www.openwebui.com/ diff --git a/charts/open-webui/README.md b/charts/open-webui/README.md index 365862d..5b7f430 100644 --- a/charts/open-webui/README.md +++ b/charts/open-webui/README.md @@ -1,6 +1,6 @@ # open-webui -![Version: 3.0.0](https://img.shields.io/badge/Version-3.0.0-informational?style=flat-square) ![AppVersion: 0.2.2](https://img.shields.io/badge/AppVersion-0.2.2-informational?style=flat-square) +![Version: 3.0.3](https://img.shields.io/badge/Version-3.0.3-informational?style=flat-square) ![AppVersion: v0.3.4](https://img.shields.io/badge/AppVersion-v0.3.4-informational?style=flat-square) Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋 diff --git a/charts/open-webui/templates/service.yaml b/charts/open-webui/templates/service.yaml index 19d93f3..1e6be20 100644 --- a/charts/open-webui/templates/service.yaml +++ b/charts/open-webui/templates/service.yaml @@ -26,4 +26,10 @@ spec: {{- if .Values.service.loadBalancerClass }} loadBalancerClass: {{ .Values.service.loadBalancerClass | quote }} {{- end }} - \ No newline at end of file + {{- if and (eq .Values.service.type "ClusterIP") (.Values.service.clusterIP) }} + clusterIP: {{ .Values.service.clusterIP }} + {{- end }} + {{- if and (eq .Values.service.type "loadBalancer") (.Values.service.loadBalancerIP) }} + loadBalancerIP: {{ .Values.service.loadBalancerIP }} + {{- end }} +