Skip to content

Commit e47f53e

Browse files
authored
chore: add security context to upgrade job (#9702)
1 parent 605b802 commit e47f53e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

deploy/helm/templates/kubeblocks-upgrade-hook.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ spec:
4141
echo "ERROR: can not upgrade KubeBlocks from $version to {{ .Chart.AppVersion }}"
4242
exit 1
4343
fi
44+
{{- with .Values.securityContext }}
45+
securityContext:
46+
{{- toYaml . | nindent 12 }}
47+
{{- end }}
4448
{{- with .Values.topologySpreadConstraints }}
4549
topologySpreadConstraints:
4650
{{- toYaml . | nindent 8 }}

0 commit comments

Comments
 (0)