From 35fafaf2e22601b9553ba4c9ad90196fc54b2d76 Mon Sep 17 00:00:00 2001 From: Markus Kopp Date: Tue, 17 Sep 2024 14:11:02 +0200 Subject: [PATCH] Update _helpers.tpl to adress missing resource limits in pre-puller init containers for firefox,edge,... (#2399) * Update _helpers.tpl Fixes to have pre-puller initContainer with resource limits. * Update _helpers.tpl Do the same for videoRecorder --- 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 9949ce493..e893bd23a 100644 --- a/charts/selenium-grid/templates/_helpers.tpl +++ b/charts/selenium-grid/templates/_helpers.tpl @@ -306,10 +306,16 @@ 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 }} command: ["bash", "-c", "'true'"] + {{- with .node.resources }} + resources: {{- toYaml . | nindent 10 }} + {{- end }} {{- end }} {{- with .node.initContainers }} {{- toYaml . | nindent 6 }}