Skip to content

Commit 8df18e0

Browse files
committed
add controller.extraLabels to pre-upgrade hook job
1 parent 7d4dda4 commit 8df18e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

chart/templates/hook-upgrade-crds.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ spec:
8585
template:
8686
metadata:
8787
name: {{ printf "%s-%s" "upgrade-crds" (include "vso.chart.fullname" .) | trunc 63 | trimSuffix "-" }}
88+
labels:
89+
{{- if .Values.controller.extraLabels }}
90+
{{- toYaml .Values.controller.extraLabels | nindent 8 }}
91+
{{- end }}
8892
spec:
8993
serviceAccountName: {{ template "vso.chart.fullname" . }}-upgrade-crds
9094
securityContext:

0 commit comments

Comments
 (0)