Skip to content

Commit

Permalink
add controller.extraLabels to pre-upgrade hook job
Browse files Browse the repository at this point in the history
  • Loading branch information
satyamkapoor committed Nov 5, 2024
1 parent b0b381e commit dd64892
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chart/templates/hook-upgrade-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dd64892

Please sign in to comment.