From 774d4e4c20f01a1b96100b7ebfc2ed684396ea2c Mon Sep 17 00:00:00 2001 From: Alexander Andryashin Date: Fri, 20 May 2022 14:13:02 +0300 Subject: [PATCH] Add service labels. --- moon2/templates/service.yaml | 6 ++++++ moon2/values.yaml | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/moon2/templates/service.yaml b/moon2/templates/service.yaml index 2fa7373..225946e 100644 --- a/moon2/templates/service.yaml +++ b/moon2/templates/service.yaml @@ -10,6 +10,12 @@ metadata: {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} + {{- if .Values.serviceLabels }} + labels: + {{- range $key, $value := .Values.serviceLabels }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} spec: selector: app: {{ .Release.Name }} diff --git a/moon2/values.yaml b/moon2/values.yaml index b17daa7..64ee64d 100644 --- a/moon2/values.yaml +++ b/moon2/values.yaml @@ -72,6 +72,11 @@ serviceAccountAnnotations: {} ## serviceAnnotations: {} +## +## Moon service labels. +## +serviceLabels: {} + ## ## Moon deployment settings. ##