Skip to content

Commit

Permalink
Helm: ability to specify image pull secrets (#1619) (#1620)
Browse files Browse the repository at this point in the history
* Helm: ability to specify image pull secrets (#1619)

Added global value `global.seleniumGrid.imagePullSecret`
Added per component override `component.imagePullSecret`

Updated readme
Bumped chart version to 0.7.0

* Helm: ability to specify image pull secrets (#1619)

Added global value `global.seleniumGrid.imagePullSecret`
Added per component override `component.imagePullSecret`

Updated readme
Bumped chart version to 0.7.0
  • Loading branch information
zmconnelly authored Jul 6, 2022
1 parent e35f3aa commit e36cc59
Show file tree
Hide file tree
Showing 13 changed files with 86 additions and 6 deletions.
5 changes: 5 additions & 0 deletions charts/selenium-grid/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

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

## :heavy_check_mark: 0.7.0

### Added
- Added ability to specify image pull secrets

## :heavy_check_mark: 0.6.2

### Added
Expand Down
2 changes: 1 addition & 1 deletion charts/selenium-grid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ apiVersion: v2
name: selenium-grid
description: A Helm chart for creating a Selenium Grid Server in Kubernetes
type: application
version: 0.6.2
version: 0.7.0
appVersion: 4.3.0-20220628
icon: https://github.com/SeleniumHQ/docker-selenium/raw/trunk/logo.png
18 changes: 14 additions & 4 deletions charts/selenium-grid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ helm uninstall selenium-grid

For now, global configuration supported is:

| Parameter | Default | Description |
| ----------------------------------- | ---------------------------------- | ------------------------------------- |
| `global.seleniumGrid.imageTag` | `4.3.0-20220628` | Image tag for all selenium components |
| `global.seleniumGrid.nodesImageTag` | `4.3.0-20220628` | Image tag for browser's nodes |
| Parameter | Default | Description |
| ----------------------------------- | ---------------------------------- | ------------------------------------- |
| `global.seleniumGrid.imageTag` | `4.3.0-20220628` | Image tag for all selenium components |
| `global.seleniumGrid.nodesImageTag` | `4.3.0-20220628` | Image tag for browser's nodes |
| `global.seleniumGrid.imagePullSecret` | `""` | Pull secret to be used for all images |

This table contains the configuration parameters of the chart and their default values:

Expand All @@ -71,6 +72,7 @@ This table contains the configuration parameters of the chart and their default
| `chromeNode.imageName` | `selenium/node-chrome` | Image of chrome nodes |
| `chromeNode.imageTag` | `4.3.0-20220628` | Image of chrome nodes |
| `chromeNode.imagePullPolicy` | `IfNotPresent` | Image pull policy (see https://kubernetes.io/docs/concepts/containers/images/#updating-images) |
| `chromeNode.imagePullSecret` | `""` | Image pull secret (see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry) |
| `chromeNode.ports` | `[5553]` | Port list to enable on container |
| `chromeNode.seleniumPort` | `5900` | Selenium port (spec.ports[0].targetPort in kubernetes service) |
| `chromeNode.seleniumServicePort` | `6900` | Selenium port exposed in service (spec.ports[0].port in kubernetes service) |
Expand All @@ -94,6 +96,7 @@ This table contains the configuration parameters of the chart and their default
| `firefoxNode.imageName` | `selenium/node-firefox` | Image of firefox nodes |
| `firefoxNode.imageTag` | `4.3.0-20220628` | Image of firefox nodes |
| `firefoxNode.imagePullPolicy` | `IfNotPresent` | Image pull policy (see https://kubernetes.io/docs/concepts/containers/images/#updating-images) |
| `firefoxNode.imagePullSecret` | `""` | Image pull secret (see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry) |
| `firefoxNode.ports` | `[5553]` | Port list to enable on container |
| `firefoxNode.seleniumPort` | `5900` | Selenium port (spec.ports[0].targetPort in kubernetes service) |
| `firefoxNode.seleniumServicePort` | `6900` | Selenium port exposed in service (spec.ports[0].port in kubernetes service) |
Expand All @@ -117,6 +120,7 @@ This table contains the configuration parameters of the chart and their default
| `edgeNode.imageName` | `selenium/node-edge` | Image of edge nodes |
| `edgeNode.imageTag` | `4.3.0-20220628` | Image of edge nodes |
| `edgeNode.imagePullPolicy` | `IfNotPresent` | Image pull policy (see https://kubernetes.io/docs/concepts/containers/images/#updating-images) |
| `edgeNode.imagePullSecret` | `""` | Image pull secret (see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry) |
| `edgeNode.ports` | `[5553]` | Port list to enable on container |
| `edgeNode.seleniumPort` | `5900` | Selenium port (spec.ports[0].targetPort in kubernetes service) |
| `edgeNode.seleniumServicePort` | `6900` | Selenium port exposed in service (spec.ports[0].port in kubernetes service) |
Expand Down Expand Up @@ -147,6 +151,7 @@ You can configure the Selenium Hub with this values:
| `hub.imageName` | `selenium/hub` | Selenium Hub image name |
| `hub.imageTag` | `nil` | Selenium Hub image tag (this overwrites `.global.seleniumGrid.imageTag` value) |
| `hub.imagePullPolicy` | `IfNotPresent` | Image pull policy (see https://kubernetes.io/docs/concepts/containers/images/#updating-images) |
| `hub.imagePullSecret` | `""` | Image pull secret (see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry) |
| `hub.annotations` | `{}` | Custom annotations for Selenium Hub pod |
| `hub.labels` | `{}` | Custom labels for Selenium Hub pod |
| `hub.publishPort` | `4442` | Port where events are published |
Expand All @@ -173,6 +178,7 @@ If you implement selenium-grid with separate components (`isolateComponents: tru
| `components.router.imageName` | `selenium/router` | Router image name |
| `components.router.imageTag` | `nil` | Router image tag (this overwrites `.global.seleniumGrid.imageTag` value) |
| `components.router.imagePullPolicy` | `IfNotPresent` | Image pull policy (see https://kubernetes.io/docs/concepts/containers/images/#updating-images) |
| `components.router.imagePullSecret` | `""` | Image pull secret (see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry) |
| `components.router.annotations` | `{}` | Custom annotations for router pod |
| `components.router.port` | `4444` | Router port |
| `components.router.livenessProbe` | `See values.yaml` | Liveness probe settings |
Expand All @@ -186,6 +192,7 @@ If you implement selenium-grid with separate components (`isolateComponents: tru
| `components.distributor.imageName` | `selenium/distributor` | Distributor image name |
| `components.distributor.imageTag` | `nil` | Distributor image tag (this overwrites `.global.seleniumGrid.imageTag` value) |
| `components.distributor.imagePullPolicy` | `IfNotPresent` | Image pull policy (see https://kubernetes.io/docs/concepts/containers/images/#updating-images) |
| `components.distributor.imagePullSecret` | `""` | Image pull secret (see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry) |
| `components.distributor.annotations` | `{}` | Custom annotations for Distributor pod |
| `components.distributor.port` | `5553` | Distributor port |
| `components.distributor.resources` | `{}` | Resources for Distributor container |
Expand All @@ -197,6 +204,7 @@ If you implement selenium-grid with separate components (`isolateComponents: tru
| `components.eventBus.imageName` | `selenium/event-bus` | Event Bus image name |
| `components.eventBus.imageTag` | `nil` | Event Bus image tag (this overwrites `.global.seleniumGrid.imageTag` value) |
| `components.eventBus.imagePullPolicy` | `IfNotPresent` | Image pull policy (see https://kubernetes.io/docs/concepts/containers/images/#updating-images) |
| `components.eventBus.imagePullSecret` | `""` | Image pull secret (see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry) |
| `components.eventBus.annotations` | `{}` | Custom annotations for Event Bus pod |
| `components.eventBus.port` | `5557` | Event Bus port |
| `components.eventBus.publishPort` | `4442` | Port where events are published |
Expand All @@ -210,6 +218,7 @@ If you implement selenium-grid with separate components (`isolateComponents: tru
| `components.sessionMap.imageName` | `selenium/sessions` | Session Map image name |
| `components.sessionMap.imageTag` | `nil` | Session Map image tag (this overwrites `.global.seleniumGrid.imageTag` value) |
| `components.sessionMap.imagePullPolicy` | `IfNotPresent` | Image pull policy (see https://kubernetes.io/docs/concepts/containers/images/#updating-images) |
| `components.sessionMap.imagePullSecret` | `""` | Image pull secret (see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry) |
| `components.sessionMap.annotations` | `{}` | Custom annotations for Session Map pod |
| `components.sessionMap.resources` | `{}` | Resources for event-bus container |
| `components.sessionMap.serviceType` | `ClusterIP` | Kubernetes service type (see https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) |
Expand All @@ -220,6 +229,7 @@ If you implement selenium-grid with separate components (`isolateComponents: tru
| `components.sessionQueue.imageName` | `selenium/session-queue` | Session Queue image name |
| `components.sessionQueue.imageTag` | `nil` | Session Queue image tag (this overwrites `.global.seleniumGrid.imageTag` value) |
| `components.sessionQueue.imagePullPolicy` | `IfNotPresent` | Image pull policy (see https://kubernetes.io/docs/concepts/containers/images/#updating-images) |
| `components.sessionQueue.imagePullSecret` | `""` | Image pull secret (see https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry) |
| `components.sessionQueue.annotations` | `{}` | Custom annotations for Session Queue pod |
| `components.sessionQueue.resources` | `{}` | Resources for event-bus container |
| `components.sessionQueue.serviceType` | `ClusterIP` | Kubernetes service type (see https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) |
Expand Down
4 changes: 4 additions & 0 deletions charts/selenium-grid/templates/chrome-node-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ spec:
{{- with .Values.chromeNode.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.chromeNode.imagePullSecret }}
imagePullSecrets:
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.chromeNode.imagePullSecret }}
{{- end }}
{{- with .Values.chromeNode.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/selenium-grid/templates/distributor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ spec:
{{- with .Values.components.distributor.resources }}
resources: {{- toYaml . | nindent 12 }}
{{- end }}
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.components.distributor.imagePullSecret }}
imagePullSecrets:
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.components.distributor.imagePullSecret }}
{{- end }}
{{- with .Values.components.distributor.nodeSelector }}
nodeSelector: {{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/selenium-grid/templates/edge-node-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ spec:
tolerations:
{{ toYaml . | nindent 6 }}
{{- end }}
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.edgeNode.imagePullSecret }}
imagePullSecrets:
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.edgeNode.imagePullSecret }}
{{- end }}
{{- with .Values.edgeNode.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/selenium-grid/templates/event-bus-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ spec:
tolerations:
{{ toYaml . | nindent 6 }}
{{- end }}
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.components.eventBus.imagePullSecret }}
imagePullSecrets:
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.components.eventBus.imagePullSecret }}
{{- end }}
{{- with .Values.components.eventBus.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/selenium-grid/templates/firefox-node-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ spec:
tolerations:
{{ toYaml . | nindent 6 }}
{{- end }}
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.firefoxNode.imagePullSecret }}
imagePullSecrets:
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.firefoxNode.imagePullSecret }}
{{- end }}
{{- with .Values.firefoxNode.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/selenium-grid/templates/hub-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ spec:
tolerations:
{{ toYaml . | nindent 6 }}
{{- end }}
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.hub.imagePullSecret }}
imagePullSecrets:
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.hub.imagePullSecret }}
{{- end }}
{{- with .Values.hub.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/selenium-grid/templates/router-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ spec:
tolerations:
{{ toYaml . | nindent 6 }}
{{- end }}
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.components.router.imagePullSecret }}
imagePullSecrets:
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.components.router.imagePullSecret }}
{{- end }}
{{- with .Values.components.router.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/selenium-grid/templates/session-map-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ spec:
tolerations:
{{ toYaml . | nindent 6 }}
{{- end }}
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.components.sessionMap.imagePullSecret }}
imagePullSecrets:
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.components.sessionMap.imagePullSecret }}
{{- end }}
{{- with .Values.components.sessionMap.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
Expand Down
4 changes: 4 additions & 0 deletions charts/selenium-grid/templates/session-queuer-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ spec:
tolerations:
{{ toYaml . | nindent 6 }}
{{- end }}
{{- if or .Values.global.seleniumGrid.imagePullSecret .Values.components.sessionQueue.imagePullSecret }}
imagePullSecrets:
- name: {{ default .Values.global.seleniumGrid.imagePullSecret .Values.components.sessionQueue.imagePullSecret }}
{{- end }}
{{- with .Values.components.sessionQueue.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
Expand Down
Loading

0 comments on commit e36cc59

Please sign in to comment.