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

Commit

Permalink
bug(chart): template issue when chart is imported as dependency in um…
Browse files Browse the repository at this point in the history
…brella charts

Fix issue SeleniumHQ#2141

Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
  • Loading branch information
VietND96 committed Feb 21, 2024
1 parent 65a97e4 commit 4543903
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion charts/selenium-grid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: selenium-grid
description: A Helm chart for creating a Selenium Grid Server in Kubernetes
type: application
version: 0.28.0
version: 0.28.1
appVersion: 4.18.0-20240220
icon: https://github.com/SeleniumHQ/docker-selenium/raw/trunk/logo.png
dependencies:
Expand Down
23 changes: 12 additions & 11 deletions charts/selenium-grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,17 +274,18 @@ ingress-nginx:
### Configuration global
For now, global configuration supported is:
| Parameter | Default | Description |
|---------------------------------------|-----------------------|----------------------------------------|
| `global.K8S_PUBLIC_IP` | `""` | Public IP of the host running K8s |
| `global.seleniumGrid.imageRegistry` | `selenium` | Distribution registry to pull images |
| `global.seleniumGrid.imageTag` | `4.18.0-20240220` | Image tag for all selenium components |
| `global.seleniumGrid.nodesImageTag` | `4.18.0-20240220` | Image tag for browser's nodes |
| `global.seleniumGrid.videoImageTag` | `ffmpeg-6.1-20240220` | Image tag for browser's video recorder |
| `global.seleniumGrid.imagePullSecret` | `""` | Pull secret to be used for all images |
| `global.seleniumGrid.imagePullSecret` | `""` | Pull secret to be used for all images |
| `global.seleniumGrid.affinity` | `{}` | Affinity assigned globally |
| `global.seleniumGrid.logLevel` | `INFO` | Set log level for all components |
| Parameter | Default | Description |
|-----------------------------------------------|-----------------------|----------------------------------------|
| `global.K8S_PUBLIC_IP` | `""` | Public IP of the host running K8s |
| `global.seleniumGrid.imageRegistry` | `selenium` | Distribution registry to pull images |
| `global.seleniumGrid.imageTag` | `4.18.0-20240220` | Image tag for all selenium components |
| `global.seleniumGrid.nodesImageTag` | `4.18.0-20240220` | Image tag for browser's nodes |
| `global.seleniumGrid.videoImageTag` | `ffmpeg-6.1-20240220` | Image tag for browser's video recorder |
| `global.seleniumGrid.imagePullSecret` | `""` | Pull secret to be used for all images |
| `global.seleniumGrid.imagePullSecret` | `""` | Pull secret to be used for all images |
| `global.seleniumGrid.affinity` | `{}` | Affinity assigned globally |
| `global.seleniumGrid.logLevel` | `INFO` | Set log level for all components |
| `global.seleniumGrid.defaultNodeStartupProbe` | `exec` | Default startup probe method in Nodes |

#### Configuration `global.K8S_PUBLIC_IP`

Expand Down
3 changes: 3 additions & 0 deletions charts/selenium-grid/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ template:
startupProbe:
{{- if (ne (include "seleniumGrid.probe.fromUserDefine" (dict "values" . "root" $)) "{}") }}
{{- include "seleniumGrid.probe.fromUserDefine" (dict "values" . "root" $) | nindent 10 }}
{{- else if eq $.Values.global.seleniumGrid.defaultNodeStartupProbe "exec" }}
exec:
command: ["bash", "-c", "{{ $.Values.nodeConfigMap.extraScriptsDirectory }}/nodeProbe.sh >> /proc/1/fd/1"]
{{- else }}
httpGet:
scheme: {{ default (include "seleniumGrid.probe.httpGet.schema" $) .schema }}
Expand Down
9 changes: 3 additions & 6 deletions charts/selenium-grid/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ global:
imagePullSecret: ""
# Log level for all components. Possible values describe here: https://www.selenium.dev/documentation/grid/configuration/cli_options/#logging
logLevel: INFO
# Set default startup probe for all nodes (supplied values: httpGet, exec). If not set, the default is httpGet
# startup probe method `exec.command` is using a script is mounted from `nodeConfigMap.extraScripts.nodeProbe.sh`
defaultNodeStartupProbe: exec

tls:
enabled: false
Expand Down Expand Up @@ -651,8 +654,6 @@ chromeNode:
# Wait for pod startup
startupProbe:
enabled: true
exec:
command: ["bash", "-c", "{{ $.Values.nodeConfigMap.extraScriptsDirectory }}/nodeProbe.sh >> /proc/1/fd/1"]
path: /status
initialDelaySeconds: 0
periodSeconds: 5
Expand Down Expand Up @@ -813,8 +814,6 @@ firefoxNode:
# Wait for pod startup
startupProbe:
enabled: true
exec:
command: ["bash", "-c", "{{ $.Values.nodeConfigMap.extraScriptsDirectory }}/nodeProbe.sh >> /proc/1/fd/1"]
path: /status
initialDelaySeconds: 0
periodSeconds: 5
Expand Down Expand Up @@ -973,8 +972,6 @@ edgeNode:
# Wait for pod startup
startupProbe:
enabled: true
exec:
command: ["bash", "-c", "{{ $.Values.nodeConfigMap.extraScriptsDirectory }}/nodeProbe.sh >> /proc/1/fd/1"]
path: /status
initialDelaySeconds: 0
periodSeconds: 5
Expand Down

0 comments on commit 4543903

Please sign in to comment.