Skip to content

Commit ef332bb

Browse files
yo-gadiemol
andauthored
helm chart VolumeMounts & Volumes for Selenium hub (#1893)
* helm chart VolumeMounts & Volumes for hub Add the extraVolumes & extraVolumeMounts in values. Also add the block of volumes & volumeMounts in hub deployment yaml. Fixes #1801 * Update Readme --------- Co-authored-by: Diego Molina <[email protected]>
1 parent fb28eea commit ef332bb

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

charts/selenium-grid/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ You can configure the Selenium Hub with this values:
241241
| `hub.subPath` | `/` | Custom sub path for the hub deployment |
242242
| `hub.extraEnvironmentVariables` | `nil` | Custom environment variables for selenium-hub |
243243
| `hub.extraEnvFrom` | `nil` | Custom environment variables for selenium taken from `configMap` or `secret`-hub |
244+
| `hub.extraVolumeMounts` | `[]` | Extra mounts of declared ExtraVolumes into pod |
245+
| `hub.extraVolumes` | `[]` | Extra Volumes declarations to be used in the pod (can be any supported volume type: ConfigMap, Secret, PVC, NFS, etc.) |
244246
| `hub.resources` | `{}` | Resources for selenium-hub container |
245247
| `hub.securityContext` | `See values.yaml` | Security context for selenium-hub container |
246248
| `hub.serviceType` | `ClusterIP` | Kubernetes service type (see https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) |

charts/selenium-grid/templates/hub-deployment.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ spec:
7171
envFrom:
7272
{{- toYaml . | nindent 12 }}
7373
{{- end }}
74+
{{- with .Values.hub.extraVolumeMounts }}
75+
volumeMounts:
76+
{{- tpl (toYaml .) $ | nindent 12 }}
77+
{{- end }}
7478
{{- with .Values.hub.resources }}
7579
resources: {{- toYaml . | nindent 12 }}
7680
{{- end }}
@@ -94,4 +98,8 @@ spec:
9498
{{- with .Values.hub.priorityClassName }}
9599
priorityClassName: {{ . }}
96100
{{- end }}
101+
{{- with .Values.hub.extraVolumes }}
102+
volumes:
103+
{{- tpl (toYaml .) $ | nindent 8 }}
104+
{{- end }}
97105
{{- end }}

charts/selenium-grid/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,16 @@ hub:
295295
# name: proxy-settings
296296
# - secretRef:
297297
# name: mysecret
298+
extraVolumeMounts: []
299+
# - name: my-extra-volume
300+
# mountPath: /home/seluser/Downloads
301+
302+
extraVolumes: []
303+
# - name: my-extra-volume
304+
# emptyDir: {}
305+
# - name: my-extra-volume-from-pvc
306+
# persistentVolumeClaim:
307+
# claimName: my-pv-claim
298308
# Resources for selenium-hub container
299309
resources: {}
300310
# SecurityContext for selenium-hub container

0 commit comments

Comments
 (0)