From d086320ac3853d6aa5ab796acb21e3410eacd550 Mon Sep 17 00:00:00 2001 From: Markus Kopp Date: Tue, 17 Sep 2024 12:41:18 +0200 Subject: [PATCH 1/2] Update _helpers.tpl Fixes to have pre-puller initContainer with resource limits. --- charts/selenium-grid/templates/_helpers.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/selenium-grid/templates/_helpers.tpl b/charts/selenium-grid/templates/_helpers.tpl index 9949ce4936..42efbaff03 100644 --- a/charts/selenium-grid/templates/_helpers.tpl +++ b/charts/selenium-grid/templates/_helpers.tpl @@ -306,6 +306,9 @@ template: - name: "pre-puller-{{ .name }}" image: {{ printf "%s/%s:%s" $nodeImageRegistry .node.imageName $nodeImageTag }} command: ["bash", "-c", "'true'"] + {{- with .node.resources }} + resources: {{- toYaml . | nindent 10 }} + {{- end }} {{- if $.Values.videoRecorder.enabled }} - name: "pre-puller-{{ $.Values.videoRecorder.name }}" image: {{ printf "%s/%s:%s" $videoImageRegistry $.Values.videoRecorder.imageName $videoImageTag }} From 49e0adf4a6e148d2dc5d4eb30ac8d6332fa75af7 Mon Sep 17 00:00:00 2001 From: Markus Kopp Date: Tue, 17 Sep 2024 12:54:18 +0200 Subject: [PATCH 2/2] Update _helpers.tpl Do the same for videoRecorder --- charts/selenium-grid/templates/_helpers.tpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts/selenium-grid/templates/_helpers.tpl b/charts/selenium-grid/templates/_helpers.tpl index 42efbaff03..e893bd23a8 100644 --- a/charts/selenium-grid/templates/_helpers.tpl +++ b/charts/selenium-grid/templates/_helpers.tpl @@ -313,6 +313,9 @@ template: - name: "pre-puller-{{ $.Values.videoRecorder.name }}" image: {{ printf "%s/%s:%s" $videoImageRegistry $.Values.videoRecorder.imageName $videoImageTag }} command: ["bash", "-c", "'true'"] + {{- with .node.resources }} + resources: {{- toYaml . | nindent 10 }} + {{- end }} {{- end }} {{- with .node.initContainers }} {{- toYaml . | nindent 6 }}