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

Commit

Permalink
[stable/selenium] Add ability to pass additional pod labels for all p…
Browse files Browse the repository at this point in the history
…ods (#22931)

* Add ability to pass additional pod labels for all pods

My use case for these is to add a pod label to be used with and AWS EKS
Fargate profile. By default no additional labels are added.

Signed-off-by: Daniel Schaaff <[email protected]>

* Bump the chart version

Signed-off-by: Daniel Schaaff <[email protected]>
  • Loading branch information
dschaaff authored Jul 7, 2020
1 parent 1bee666 commit ee67cf5
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stable/selenium/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: selenium
version: 1.1.1
version: 1.1.2
appVersion: 3.141.59
description: Chart for selenium grid
keywords:
Expand Down
5 changes: 5 additions & 0 deletions stable/selenium/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ The following table lists the configurable parameters of the Selenium chart and
| `hub.servicePort` | The port the hub Service listens on | `4444` |
| `hub.nodePort` | The port the hub is exposed when Nodeport mode is selected | `nil` |
| `hub.podAnnotations` | Annotations on the hub pod | `{}` |
| `hub.podLabels` | Additionals labels to the hub pod | `{}`|
| `hub.securityContext` | SecurityContext on the hub pod | `{"runAsUser": 1000, "fsGroup": 1000}` |
| `hub.extraEnvs` | Any additional environment variables to set in the pods | `[]` |
| `hub.javaOpts` | The java options for the selenium hub JVM, default sets the maximum heap size to 400 mb | `-Xmx400m` |
Expand Down Expand Up @@ -94,6 +95,7 @@ The following table lists the configurable parameters of the Selenium chart and
| `chrome.enableLivenessProbe` | When true will add a liveness check to the pod | `false` |
| `chrome.waitForRunningSessions` | When true will wait for current running sessions to finish before terminating the pod | `false` |
| `chrome.podAnnotations` | Annotations on the chrome pods | `{}` |
| `chrome.podLabels` | Additional labels on the chrome pods | `{}` |
| `chrome.securityContext` | SecurityContext on the chrome pods | `{"runAsUser": 1000, "fsGroup": 1000}` |
| `chrome.extraEnvs` | Any additional environment variables to set in the pods | `[]` |
| `chrome.javaOpts` | The java options for the selenium node chrome JVM, default sets the maximum heap size to 900 mb | `-Xmx900m` |
Expand Down Expand Up @@ -124,6 +126,7 @@ The following table lists the configurable parameters of the Selenium chart and
| `chromeDebug.enableLivenessProbe` | When true will add a liveness check to the pod | `false` |
| `chromeDebug.waitForRunningSessions` | When true will wait for current running sessions to finish before terminating the pod | `false` |
| `chromeDebug.podAnnotations` | Annotations on the Chrome debug pod | `{}` |
| `chromeDebug.podLabels` | Additional labels on the Chrome debug pods | `{}` |
| `chromeDebug.securityContext` | SecurityContext on the Chrome debug pods | `{"runAsUser": 1000, "fsGroup": 1000}` |
| `chromeDebug.extraEnvs` | Any additional environment variables to set in the pods | `[]` |
| `chromeDebug.javaOpts` | The java options for a selenium node chrome debug JVM, default sets the max heap size to 900 mb | `-Xmx900m` |
Expand Down Expand Up @@ -154,6 +157,7 @@ The following table lists the configurable parameters of the Selenium chart and
| `firefox.enableLivenessProbe` | When true will add a liveness check to the pod | `false` |
| `firefox.waitForRunningSessions` | When true will wait for current running sessions to finish before terminating the pod | `false` |
| `firefox.podAnnotations` | Annotations on the firefox pods | `{}` |
| `firefox.podLabels` | Additional labels on the firefox pods | `{}` |
| `firefox.securityContext` | SecurityContext on the firefox pods | `{"runAsUser": 1000, "fsGroup": 1000}` |
| `firefox.extraEnvs` | Any additional environment variables to set in the pods | `[]` |
| `firefox.javaOpts` | The java options for a selenium node firefox JVM, default sets the max heap size to 900 mb | `-Xmx900m` |
Expand Down Expand Up @@ -182,6 +186,7 @@ The following table lists the configurable parameters of the Selenium chart and
| `firefoxDebug.enableLivenessProbe` | When true will add a liveness check to the pod | `false` |
| `firefoxDebug.waitForRunningSessions` | When true will wait for current running sessions to finish before terminating the pod | `false` |
| `firefoxDebug.podAnnotations` | Annotations on the firefox debug pods | `{}` |
| `firefoxDebug.podLabels` | Additional labels on the firefox debug pods | `{}` |
| `firefoxDebug.securityContext` | SecurityContext on the firefox debug pods | `{"runAsUser": 1000, "fsGroup": 1000}` |
| `firefoxDebug.extraEnvs` | Any additional environment variables to set in the pods | `[]` |
| `firefoxDebug.javaOpts` | The java options for a selenium node firefox debug JVM, default sets the max heap size to 900 mb | `-Xmx900m` |
Expand Down
3 changes: 3 additions & 0 deletions stable/selenium/templates/chrome-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.chrome.podLabels }}
{{ toYaml .| indent 2 }}
{{- end }}
{{- if .Values.chrome.podAnnotations }}
annotations:
{{ toYaml .Values.chrome.podAnnotations | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/selenium/templates/chrome-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.chrome.podLabels }}
{{ toYaml .| indent 2 }}
{{- end }}
{{- if .Values.chrome.podAnnotations }}
annotations:
{{ toYaml .Values.chrome.podAnnotations | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/selenium/templates/chromeDebug-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.chromeDebug.podLabels }}
{{ toYaml .| indent 2 }}
{{- end }}
{{- if .Values.chromeDebug.podAnnotations }}
annotations:
{{ toYaml .Values.chromeDebug.podAnnotations | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/selenium/templates/chromeDebug-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.chromeDebug.podLabels }}
{{ toYaml .| indent 2 }}
{{- end }}
{{- if .Values.chromeDebug.podAnnotations }}
annotations:
{{ toYaml .Values.chromeDebug.podAnnotations | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/selenium/templates/firefox-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.firefox.podLabels }}
{{ toYaml .| indent 2 }}
{{- end }}
{{- if .Values.firefox.podAnnotations }}
annotations:
{{ toYaml .Values.firefox.podAnnotations | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/selenium/templates/firefox-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.firefox.podLabels }}
{{ toYaml .| indent 2 }}
{{- end }}
{{- if .Values.firefox.podAnnotations }}
annotations:
{{ toYaml .Values.firefox.podAnnotations | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/selenium/templates/firefoxDebug-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.firefoxDebug.podLabels }}
{{ toYaml .| indent 2 }}
{{- end }}
{{- if .Values.firefoxDebug.podAnnotations }}
annotations:
{{ toYaml .Values.firefoxDebug.podAnnotations | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/selenium/templates/firefoxDebug-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.firefoxDebug.podLabels }}
{{ toYaml .| indent 2 }}
{{- end }}
{{- if .Values.firefoxDebug.podAnnotations }}
annotations:
{{ toYaml .Values.firefoxDebug.podAnnotations | indent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions stable/selenium/templates/hub-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ spec:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.hub.podLabels }}
{{ toYaml .| indent 2 }}
{{- end }}
{{- if .Values.hub.podAnnotations }}
annotations:
{{ toYaml .Values.hub.podAnnotations | indent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions stable/selenium/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ hub:

## Configure annotations on the hub pod
podAnnotations: {}
## Configure labels on the hub pod
podLabels: {}

## The type of service to create
## Values: ClusterIP, NodePort, LoadBalancer, or ExternalName
Expand Down Expand Up @@ -181,6 +183,8 @@ chrome:

## Configure annotations on the chrome pods
podAnnotations: {}
## Configure Labels on the chrome pods
podLabels: {}

# Configure security context on the chrome pods
# securityContext:
Expand Down Expand Up @@ -286,6 +290,8 @@ chromeDebug:

## Configure annotations on the chrome debug pods
podAnnotations: {}
## Configure labels on the chrome debug pods
podLabels: {}

# Configure security context on the chrome debug pods
# securityContext:
Expand Down Expand Up @@ -390,6 +396,8 @@ firefox:

## Configure annotations on the firefox pods
podAnnotations: {}
## Configure labels on the firefox pods
podLabels: {}

# Configure security context on the firefox pods
# securityContext:
Expand Down Expand Up @@ -481,6 +489,8 @@ firefoxDebug:

## Configure annotations on the firefox debug pods
podAnnotations: {}
## Configure labels on the firefox debug pods
podLabels: {}

# Configure security context on the firefox debug pods
# securityContext:
Expand Down

0 comments on commit ee67cf5

Please sign in to comment.