Skip to content

Commit c5542bf

Browse files
committed
fix(chart): propagate controller labels to hook pod
1 parent 83d1c94 commit c5542bf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

chart/templates/hook-upgrade-crds.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ spec:
8585
template:
8686
metadata:
8787
name: {{ printf "%s-%s" "upgrade-crds" (include "vso.chart.fullname" .) | trunc 63 | trimSuffix "-" }}
88+
labels:
89+
app.kubernetes.io/component: controller-manager
90+
{{- if .Values.controller.extraLabels }}
91+
{{- toYaml .Values.controller.extraLabels | nindent 8 }}
92+
{{- end }}
8893
spec:
8994
serviceAccountName: {{ template "vso.chart.fullname" . }}-upgrade-crds
9095
securityContext:

chart/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -923,6 +923,7 @@ hooks:
923923
requests:
924924
cpu: 10m
925925
memory: 64Mi
926+
926927
# Configure the Helm pre-upgrade hook that handles custom resource definition (CRD) upgrades.
927928
upgradeCRDs:
928929
# Set to true to automatically upgrade the CRDs.

0 commit comments

Comments
 (0)