From 124c51af384158914eb366cabbe52fa774d49030 Mon Sep 17 00:00:00 2001 From: Oskar Budziosz Date: Tue, 21 Jan 2025 16:20:06 +0100 Subject: [PATCH] enabled passing securityContext to initContainers --- charts/selenium-grid/templates/_helpers.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/selenium-grid/templates/_helpers.tpl b/charts/selenium-grid/templates/_helpers.tpl index b7860bb89a..92de53cabf 100644 --- a/charts/selenium-grid/templates/_helpers.tpl +++ b/charts/selenium-grid/templates/_helpers.tpl @@ -319,6 +319,9 @@ template: {{- with .node.resources }} resources: {{- toYaml . | nindent 10 }} {{- end }} + {{- with .node.securityContext }} + securityContext: {{- toYaml . | nindent 10 }} + {{- end }} {{- if .recorder.enabled }} - name: "pre-puller-{{ .recorder.name }}" image: {{ printf "%s/%s:%s" $videoImageRegistry .recorder.imageName $videoImageTag }} @@ -326,6 +329,9 @@ template: {{- with .recorder.resources }} resources: {{- toYaml . | nindent 10 }} {{- end }} + {{- with .recorder.securityContext }} + securityContext: {{- toYaml . | nindent 10 }} + {{- end }} {{- end }} {{- with .node.initContainers }} {{- toYaml . | nindent 6 }}