From dd64892115eefff1c13d5a8e1d91c3979f6f1845 Mon Sep 17 00:00:00 2001 From: Satyam Kapoor Date: Mon, 4 Nov 2024 15:43:25 +0100 Subject: [PATCH] add controller.extraLabels to pre-upgrade hook job --- chart/templates/hook-upgrade-crds.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chart/templates/hook-upgrade-crds.yaml b/chart/templates/hook-upgrade-crds.yaml index 3f5b3b13..75307fd7 100644 --- a/chart/templates/hook-upgrade-crds.yaml +++ b/chart/templates/hook-upgrade-crds.yaml @@ -85,6 +85,10 @@ spec: template: metadata: name: {{ printf "%s-%s" "upgrade-crds" (include "vso.chart.fullname" .) | trunc 63 | trimSuffix "-" }} + labels: + {{- if .Values.controller.extraLabels }} + {{- toYaml .Values.controller.extraLabels | nindent 8 }} + {{- end }} spec: serviceAccountName: {{ template "vso.chart.fullname" . }}-upgrade-crds securityContext: