Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 4543903

Browse files
committed
bug(chart): template issue when chart is imported as dependency in umbrella charts
Fix issue SeleniumHQ#2141 Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 65a97e4 commit 4543903

File tree

4 files changed

+19
-18
lines changed

4 files changed

+19
-18
lines changed

charts/selenium-grid/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: selenium-grid
33
description: A Helm chart for creating a Selenium Grid Server in Kubernetes
44
type: application
5-
version: 0.28.0
5+
version: 0.28.1
66
appVersion: 4.18.0-20240220
77
icon: https://github.com/SeleniumHQ/docker-selenium/raw/trunk/logo.png
88
dependencies:

charts/selenium-grid/README.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -274,17 +274,18 @@ ingress-nginx:
274274
### Configuration global
275275
For now, global configuration supported is:
276276
277-
| Parameter | Default | Description |
278-
|---------------------------------------|-----------------------|----------------------------------------|
279-
| `global.K8S_PUBLIC_IP` | `""` | Public IP of the host running K8s |
280-
| `global.seleniumGrid.imageRegistry` | `selenium` | Distribution registry to pull images |
281-
| `global.seleniumGrid.imageTag` | `4.18.0-20240220` | Image tag for all selenium components |
282-
| `global.seleniumGrid.nodesImageTag` | `4.18.0-20240220` | Image tag for browser's nodes |
283-
| `global.seleniumGrid.videoImageTag` | `ffmpeg-6.1-20240220` | Image tag for browser's video recorder |
284-
| `global.seleniumGrid.imagePullSecret` | `""` | Pull secret to be used for all images |
285-
| `global.seleniumGrid.imagePullSecret` | `""` | Pull secret to be used for all images |
286-
| `global.seleniumGrid.affinity` | `{}` | Affinity assigned globally |
287-
| `global.seleniumGrid.logLevel` | `INFO` | Set log level for all components |
277+
| Parameter | Default | Description |
278+
|-----------------------------------------------|-----------------------|----------------------------------------|
279+
| `global.K8S_PUBLIC_IP` | `""` | Public IP of the host running K8s |
280+
| `global.seleniumGrid.imageRegistry` | `selenium` | Distribution registry to pull images |
281+
| `global.seleniumGrid.imageTag` | `4.18.0-20240220` | Image tag for all selenium components |
282+
| `global.seleniumGrid.nodesImageTag` | `4.18.0-20240220` | Image tag for browser's nodes |
283+
| `global.seleniumGrid.videoImageTag` | `ffmpeg-6.1-20240220` | Image tag for browser's video recorder |
284+
| `global.seleniumGrid.imagePullSecret` | `""` | Pull secret to be used for all images |
285+
| `global.seleniumGrid.imagePullSecret` | `""` | Pull secret to be used for all images |
286+
| `global.seleniumGrid.affinity` | `{}` | Affinity assigned globally |
287+
| `global.seleniumGrid.logLevel` | `INFO` | Set log level for all components |
288+
| `global.seleniumGrid.defaultNodeStartupProbe` | `exec` | Default startup probe method in Nodes |
288289

289290
#### Configuration `global.K8S_PUBLIC_IP`
290291

charts/selenium-grid/templates/_helpers.tpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ template:
262262
startupProbe:
263263
{{- if (ne (include "seleniumGrid.probe.fromUserDefine" (dict "values" . "root" $)) "{}") }}
264264
{{- include "seleniumGrid.probe.fromUserDefine" (dict "values" . "root" $) | nindent 10 }}
265+
{{- else if eq $.Values.global.seleniumGrid.defaultNodeStartupProbe "exec" }}
266+
exec:
267+
command: ["bash", "-c", "{{ $.Values.nodeConfigMap.extraScriptsDirectory }}/nodeProbe.sh >> /proc/1/fd/1"]
265268
{{- else }}
266269
httpGet:
267270
scheme: {{ default (include "seleniumGrid.probe.httpGet.schema" $) .schema }}

charts/selenium-grid/values.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ global:
1616
imagePullSecret: ""
1717
# Log level for all components. Possible values describe here: https://www.selenium.dev/documentation/grid/configuration/cli_options/#logging
1818
logLevel: INFO
19+
# Set default startup probe for all nodes (supplied values: httpGet, exec). If not set, the default is httpGet
20+
# startup probe method `exec.command` is using a script is mounted from `nodeConfigMap.extraScripts.nodeProbe.sh`
21+
defaultNodeStartupProbe: exec
1922

2023
tls:
2124
enabled: false
@@ -651,8 +654,6 @@ chromeNode:
651654
# Wait for pod startup
652655
startupProbe:
653656
enabled: true
654-
exec:
655-
command: ["bash", "-c", "{{ $.Values.nodeConfigMap.extraScriptsDirectory }}/nodeProbe.sh >> /proc/1/fd/1"]
656657
path: /status
657658
initialDelaySeconds: 0
658659
periodSeconds: 5
@@ -813,8 +814,6 @@ firefoxNode:
813814
# Wait for pod startup
814815
startupProbe:
815816
enabled: true
816-
exec:
817-
command: ["bash", "-c", "{{ $.Values.nodeConfigMap.extraScriptsDirectory }}/nodeProbe.sh >> /proc/1/fd/1"]
818817
path: /status
819818
initialDelaySeconds: 0
820819
periodSeconds: 5
@@ -973,8 +972,6 @@ edgeNode:
973972
# Wait for pod startup
974973
startupProbe:
975974
enabled: true
976-
exec:
977-
command: ["bash", "-c", "{{ $.Values.nodeConfigMap.extraScriptsDirectory }}/nodeProbe.sh >> /proc/1/fd/1"]
978975
path: /status
979976
initialDelaySeconds: 0
980977
periodSeconds: 5

0 commit comments

Comments
 (0)