From 905b0bf3209f012090f2280d25b239014af3af06 Mon Sep 17 00:00:00 2001 From: Jared Clarke Date: Sat, 26 Jun 2021 19:22:56 +0100 Subject: [PATCH] Add the ability to define customLabels against the manager deployment --- config/helmchart/templates/_helpers.tpl | 3 +++ config/helmchart/values.yaml.tpl | 2 ++ 2 files changed, 5 insertions(+) diff --git a/config/helmchart/templates/_helpers.tpl b/config/helmchart/templates/_helpers.tpl index 110ca977..245798cb 100644 --- a/config/helmchart/templates/_helpers.tpl +++ b/config/helmchart/templates/_helpers.tpl @@ -41,6 +41,9 @@ helm.sh/chart: {{ include "namespace-configuration-operator.chart" . }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- if .Values.customLabels }} +{{ toYaml .Values.customLabels }} +{{- end }} {{- end }} {{/* diff --git a/config/helmchart/values.yaml.tpl b/config/helmchart/values.yaml.tpl index fb87e170..8e23ca68 100644 --- a/config/helmchart/values.yaml.tpl +++ b/config/helmchart/values.yaml.tpl @@ -10,6 +10,8 @@ image: # Overrides the image tag whose default is the chart appVersion. tag: ${version} +customLabels: {} + imagePullSecrets: [] nameOverride: "" fullnameOverride: ""