From c0412c2f04133e802829e4d11333bb49875065bf Mon Sep 17 00:00:00 2001 From: Mark Pierce Date: Mon, 30 Oct 2023 12:54:34 +0100 Subject: [PATCH] Update template to include podLabels --- charts/k6-operator/templates/_helpers.tpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/k6-operator/templates/_helpers.tpl b/charts/k6-operator/templates/_helpers.tpl index 083e4ecf..13754df5 100644 --- a/charts/k6-operator/templates/_helpers.tpl +++ b/charts/k6-operator/templates/_helpers.tpl @@ -72,6 +72,14 @@ Create the name of the service account to use {{- end }} {{- end -}} +{{- define "k6-operator.podLabels" -}} + {{- if .Values.podLabels }} + {{- with .Values.podLabels }} + {{- toYaml . }} + {{- end }} + {{- end }} +{{- end -}} + {{- define "k6-operator.customAnnotations" -}} {{- if .Values.customAnnotations }} {{- with .Values.customAnnotations }}