Skip to content

Commit dd1731d

Browse files
authored
Enable passing securityContext to initContainers in the Helm chart (#2607)
enabled passing securityContext to initContainers
1 parent ee5e658 commit dd1731d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: charts/selenium-grid/templates/_helpers.tpl

+6
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,19 @@ template:
319319
{{- with .node.resources }}
320320
resources: {{- toYaml . | nindent 10 }}
321321
{{- end }}
322+
{{- with .node.securityContext }}
323+
securityContext: {{- toYaml . | nindent 10 }}
324+
{{- end }}
322325
{{- if .recorder.enabled }}
323326
- name: "pre-puller-{{ .recorder.name }}"
324327
image: {{ printf "%s/%s:%s" $videoImageRegistry .recorder.imageName $videoImageTag }}
325328
command: ["bash", "-c", "'true'"]
326329
{{- with .recorder.resources }}
327330
resources: {{- toYaml . | nindent 10 }}
328331
{{- end }}
332+
{{- with .recorder.securityContext }}
333+
securityContext: {{- toYaml . | nindent 10 }}
334+
{{- end }}
329335
{{- end }}
330336
{{- with .node.initContainers }}
331337
{{- toYaml . | nindent 6 }}

0 commit comments

Comments
 (0)