Skip to content

Commit f282bf5

Browse files
authored
Set check-dbmigrator-run container security ctx (#194)
Signed-off-by: Sergio Castaño Arteaga <[email protected]>
1 parent 71c4f06 commit f282bf5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

charts/ocg/templates/server_deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ spec:
3636
{{ $kubectlImageVersion := ternary "1.33" $kubeVersion (semverCompare ">=1.34.0-0" (printf "%s.0" $kubeVersion)) }}
3737
image: "docker.io/bitnamilegacy/kubectl:{{ $kubectlImageVersion }}"
3838
imagePullPolicy: IfNotPresent
39+
{{- with .Values.checkDbIsReadyInitContainer.securityContext }}
40+
securityContext:
41+
{{- toYaml . | nindent 12 }}
42+
{{- end }}
3943
command: ['kubectl', 'wait', '--namespace={{ .Release.Namespace }}', '--for=condition=complete', 'job/{{ include "chart.resourceNamePrefix" . }}dbmigrator-install', '--timeout=60s']
4044
{{- end }}
4145
containers:

0 commit comments

Comments
 (0)