From c2d2772bdcfaaa3c23d5a04ddcebd61c1d5effb0 Mon Sep 17 00:00:00 2001 From: tammert Date: Wed, 21 Apr 2021 10:49:39 +0200 Subject: [PATCH] Added additionalLabels to chart --- replicant/Chart.yaml | 2 +- replicant/templates/_helpers.tpl | 3 +++ replicant/values.yaml | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/replicant/Chart.yaml b/replicant/Chart.yaml index 3216101..f6e501a 100644 --- a/replicant/Chart.yaml +++ b/replicant/Chart.yaml @@ -4,5 +4,5 @@ description: Official Helm chart for Replicant type: application -version: 0.2.3 +version: 0.2.4 appVersion: "v0.2.2" diff --git a/replicant/templates/_helpers.tpl b/replicant/templates/_helpers.tpl index c355e0b..28874bf 100644 --- a/replicant/templates/_helpers.tpl +++ b/replicant/templates/_helpers.tpl @@ -13,6 +13,9 @@ helm.sh/chart: {{ include "replicant.chart" . }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- if .Values.additionalLabels }} +{{ toYaml .Values.additionalLabels }} +{{- end }} {{- end }} {{- define "replicant.selectorLabels" -}} diff --git a/replicant/values.yaml b/replicant/values.yaml index d54a8a9..23ba2a0 100644 --- a/replicant/values.yaml +++ b/replicant/values.yaml @@ -48,3 +48,7 @@ environmentVariables: # destination: eu.gcr.io/tammert/velero/velero # mode: semver # allow-prerelease: true + +#additionalLabels: +# bob: alice +# foo: bar