From 8db472e7621f61cead22429608657d77060898ad Mon Sep 17 00:00:00 2001 From: Lorenz Boguhn Date: Fri, 5 Jul 2024 16:45:16 +0200 Subject: [PATCH] Add service labels and document service annotations --- charts/kafka-ui/templates/service.yaml | 3 +++ charts/kafka-ui/values.yaml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/charts/kafka-ui/templates/service.yaml b/charts/kafka-ui/templates/service.yaml index 337e1457..3c6e448c 100644 --- a/charts/kafka-ui/templates/service.yaml +++ b/charts/kafka-ui/templates/service.yaml @@ -5,6 +5,9 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{- include "kafka-ui.labels" . | nindent 4 }} + {{- with .Values.service.labels }} + {{- toYaml . | nindent 4 }} + {{- end }} {{- if .Values.service.annotations }} annotations: {{ toYaml .Values.service.annotations | nindent 4 }} diff --git a/charts/kafka-ui/values.yaml b/charts/kafka-ui/values.yaml index 72038e9b..e7943af9 100644 --- a/charts/kafka-ui/values.yaml +++ b/charts/kafka-ui/values.yaml @@ -92,6 +92,12 @@ securityContext: # runAsUser: 1000 service: + # Annotations for the Service + annotations: {} + + # Labels for the Service + labels: {} + type: ClusterIP port: 80 # In case of service type LoadBalancer, you can specify reserved static IP