Skip to content

Commit 509e82f

Browse files
authored
fix: use global.securityContext in crd-upgrader (#376)
1 parent 0bdaae7 commit 509e82f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deployments/kai-scheduler/templates/crd-upgrader.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ spec:
1818
- name: upgrader
1919
image: "{{ .Values.global.registry }}/{{ .Values.crdupgrader.image.name }}:{{ .Chart.Version }}"
2020
imagePullPolicy: {{ .Values.crdupgrader.image.pullPolicy }}
21+
{{- if .Values.global.securityContext }}
22+
securityContext:
23+
{{- toYaml .Values.global.securityContext | nindent 10 }}
24+
{{- end }}
2125
restartPolicy: OnFailure
2226
{{- if .Values.global.nodeSelector }}
2327
nodeSelector:

0 commit comments

Comments
 (0)