From 33642004b0c3e605e4c7b6d86a37ac0985911c2e Mon Sep 17 00:00:00 2001 From: Marius Kimmina Date: Thu, 12 Dec 2024 09:51:42 +0100 Subject: [PATCH] feat: separate helm chart for CRDs Signed-off-by: Marius Kimmina --- charts/k6-crds/templates/_helpers.tpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/charts/k6-crds/templates/_helpers.tpl b/charts/k6-crds/templates/_helpers.tpl index ab079916..d1d7836e 100644 --- a/charts/k6-crds/templates/_helpers.tpl +++ b/charts/k6-crds/templates/_helpers.tpl @@ -32,3 +32,19 @@ Selector labels app.kubernetes.io/name: {{ include "k6-crds.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} {{- end }} + +{{- define "k6-crds.customLabels" -}} + {{- if .Values.customLabels }} + {{- with .Values.customLabels }} + {{- toYaml . }} + {{- end }} + {{- end }} +{{- end -}} + +{{- define "k6-crds.customAnnotations" -}} + {{- if .Values.customAnnotations }} + {{- with .Values.customAnnotations }} + {{- toYaml . }} + {{- end }} + {{- end }} +{{- end -}}