From 9f439a162941a927ce67805fb96bfc2387e68746 Mon Sep 17 00:00:00 2001 From: jackhauGR Date: Thu, 8 May 2025 17:31:58 +0100 Subject: [PATCH] feat(open-webui): support extraLabels for custom metadata in Ingress --- charts/open-webui/templates/ingress.yaml | 3 +++ charts/open-webui/values.yaml | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/charts/open-webui/templates/ingress.yaml b/charts/open-webui/templates/ingress.yaml index 6b89ff4..a94f17c 100644 --- a/charts/open-webui/templates/ingress.yaml +++ b/charts/open-webui/templates/ingress.yaml @@ -6,6 +6,9 @@ metadata: namespace: {{ include "open-webui.namespace" . }} labels: {{- include "open-webui.labels" . | nindent 4 }} + {{- with .Values.ingress.extraLabels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.ingress.annotations }} annotations: {{- toYaml . | nindent 4 }} diff --git a/charts/open-webui/values.yaml b/charts/open-webui/values.yaml index 22f1765..a180c6d 100644 --- a/charts/open-webui/values.yaml +++ b/charts/open-webui/values.yaml @@ -181,7 +181,7 @@ managedCertificate: - chat.example.com # update to your real domain ingress: - enabled: false + enabled: true class: "" # -- Use appropriate annotations for your Ingress controller, e.g., for NGINX: annotations: {} @@ -199,6 +199,12 @@ ingress: tls: false existingSecret: "" + # -- Additional custom labels to add to the Ingress metadata + # Useful for tagging, selecting, or applying policies to the Ingress via labels. + extraLabels: {} + # extraLabels: + # app.kubernetes.io/environment: "staging" + persistence: enabled: true size: 2Gi