From 680310df11286412bac30494953395f1589fef48 Mon Sep 17 00:00:00 2001 From: Andrew Lavery Date: Mon, 20 May 2024 22:26:43 +0800 Subject: [PATCH] add the ability to specify labels for the registry service Signed-off-by: Andrew Lavery --- templates/service.yaml | 3 +++ values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/templates/service.yaml b/templates/service.yaml index cc9c5d8..9a650e1 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -8,6 +8,9 @@ metadata: chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} +{{- if .Values.service.labels }} +{{ toYaml .Values.service.labels | indent 4 }} +{{- end }} {{- if .Values.service.annotations }} annotations: {{ toYaml .Values.service.annotations | indent 4 }} diff --git a/values.yaml b/values.yaml index f48949d..4bdab45 100644 --- a/values.yaml +++ b/values.yaml @@ -37,6 +37,8 @@ service: # loadBalancerSourceRanges: annotations: {} # foo.io/bar: "true" + labels: {} + # foo.io/baz: "false" ingress: enabled: false className: nginx