From a1379e7382075a066d1fef60f9d72f139a03e0f6 Mon Sep 17 00:00:00 2001 From: maximus13th <72157765+maximus13th@users.noreply.github.com> Date: Thu, 23 Nov 2023 15:20:06 +0200 Subject: [PATCH] Add custom labels for the Ingress --- charts/kafka-ui/templates/ingress.yaml | 3 +++ charts/kafka-ui/values.yaml | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/charts/kafka-ui/templates/ingress.yaml b/charts/kafka-ui/templates/ingress.yaml index 75b107bd..1dc8a5b0 100644 --- a/charts/kafka-ui/templates/ingress.yaml +++ b/charts/kafka-ui/templates/ingress.yaml @@ -16,6 +16,9 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "kafka-ui.labels" . | nindent 4 }} + {{- with .Values.ingress.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- with .Values.ingress.annotations }} annotations: {{- toYaml . | nindent 4 }} diff --git a/charts/kafka-ui/values.yaml b/charts/kafka-ui/values.yaml index 72038e9b..cb48121e 100644 --- a/charts/kafka-ui/values.yaml +++ b/charts/kafka-ui/values.yaml @@ -103,7 +103,8 @@ service: ingress: # Enable ingress resource enabled: false - + # Custom labels for the Ingress + labels: {} # Annotations for the Ingress annotations: {}