Skip to content

Commit b1d15ef

Browse files
authored
[grid][chart] Allows users to turn off Deployment creation for Nodes (SeleniumHQ#1709)
* [grid][chart] Allows users to turn of Deployment creation for Nodes This change introduces a new value called `deploymentEnabled` for each of the node browsers, if the value is set to `true` Deployments will be created for each of the respective nodes however if `false` no Deployments will be created. This will allow users to turn of creation of the default deployments and to use other resource types instead such as jobs. Fixes SeleniumHQ#1708 * Update the Changelog and bump chart version
1 parent 398ba55 commit b1d15ef

File tree

7 files changed

+30
-4
lines changed

7 files changed

+30
-4
lines changed

charts/selenium-grid/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
All notable changes to this helm chart will be documented in this file.
44

5+
## :heavy_check_mark: 0.13.0
6+
7+
### Added
8+
- Added support to disable Chrome, Edge, and Firefox Deployment using `deploymentEnabled`
9+
510
## :heavy_check_mark: 0.12.2
611

712
### Changed

charts/selenium-grid/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ 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.12.2
5+
version: 0.13.0
66
appVersion: 4.5.3-20221024
77
icon: https://github.com/SeleniumHQ/docker-selenium/raw/trunk/logo.png

charts/selenium-grid/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ This table contains the configuration parameters of the chart and their default
6868
| `ingress.tls` | `[]` | TLS backend configuration for ingress resource |
6969
| `busConfigMap.annotations` | `{}` | Custom annotations for configmap |
7070
| `chromeNode.enabled` | `true` | Enable chrome nodes |
71+
| `chromeNode.deploymentEnabled` | `true` | Enable creation of Deployment for chrome nodes |
7172
| `chromeNode.replicas` | `1` | Number of chrome nodes |
7273
| `chromeNode.imageName` | `selenium/node-chrome` | Image of chrome nodes |
7374
| `chromeNode.imageTag` | `4.5.3-20221024` | Image of chrome nodes |
@@ -95,6 +96,7 @@ This table contains the configuration parameters of the chart and their default
9596
| `chromeNode.extraVolumeMounts` | `[]` | Extra mounts of declared ExtraVolumes into pod |
9697
| `chromeNode.extraVolumes` | `[]` | Extra Volumes declarations to be used in the pod (can be any supported volume type: ConfigMap, Secret, PVC, NFS, etc.) |
9798
| `firefoxNode.enabled` | `true` | Enable firefox nodes |
99+
| `firefoxNode.deploymentEnabled` | `true` | Enable creation of Deployment for firefox nodes |
98100
| `firefoxNode.replicas` | `1` | Number of firefox nodes |
99101
| `firefoxNode.imageName` | `selenium/node-firefox` | Image of firefox nodes |
100102
| `firefoxNode.imageTag` | `4.5.3-20221024` | Image of firefox nodes |
@@ -122,6 +124,7 @@ This table contains the configuration parameters of the chart and their default
122124
| `firefoxNode.extraVolumeMounts` | `[]` | Extra mounts of declared ExtraVolumes into pod |
123125
| `firefoxNode.extraVolumes` | `[]` | Extra Volumes declarations to be used in the pod (can be any supported volume type: ConfigMap, Secret, PVC, NFS, etc.) |
124126
| `edgeNode.enabled` | `true` | Enable edge nodes |
127+
| `edgeNode.deploymentEnabled` | `true` | Enable creation of Deployment for edge nodes |
125128
| `edgeNode.replicas` | `1` | Number of edge nodes |
126129
| `edgeNode.imageName` | `selenium/node-edge` | Image of edge nodes |
127130
| `edgeNode.imageTag` | `4.5.3-20221024` | Image of edge nodes |

charts/selenium-grid/templates/chrome-node-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.chromeNode.enabled }}
1+
{{- if and .Values.chromeNode.enabled .Values.chromeNode.deploymentEnabled }}
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:

charts/selenium-grid/templates/edge-node-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.edgeNode.enabled }}
1+
{{- if and .Values.edgeNode.enabled .Values.edgeNode.deploymentEnabled }}
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:

charts/selenium-grid/templates/firefox-node-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.firefoxNode.enabled }}
1+
{{- if and .Values.firefoxNode.enabled .Values.firefoxNode.deploymentEnabled }}
22
apiVersion: apps/v1
33
kind: Deployment
44
metadata:

charts/selenium-grid/values.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,12 @@ hub:
290290
chromeNode:
291291
# Enable chrome nodes
292292
enabled: true
293+
294+
# Enable creation of Deployment
295+
# true (default) - if you want long living pods
296+
# false - for provisioning your own custom type such as Jobs
297+
deploymentEnabled: true
298+
293299
# Number of chrome nodes
294300
replicas: 1
295301
# Image of chrome nodes
@@ -396,6 +402,12 @@ chromeNode:
396402
firefoxNode:
397403
# Enable firefox nodes
398404
enabled: true
405+
406+
# Enable creation of Deployment
407+
# true (default) - if you want long living pods
408+
# false - for provisioning your own custom type such as Jobs
409+
deploymentEnabled: true
410+
399411
# Number of firefox nodes
400412
replicas: 1
401413
# Image of firefox nodes
@@ -502,6 +514,12 @@ firefoxNode:
502514
edgeNode:
503515
# Enable edge nodes
504516
enabled: true
517+
518+
# Enable creation of Deployment
519+
# true (default) - if you want long living pods
520+
# false - for provisioning your own custom type such as Jobs
521+
deploymentEnabled: true
522+
505523
# Number of edge nodes
506524
replicas: 1
507525
# Image of edge nodes

0 commit comments

Comments
 (0)