Skip to content

Commit

Permalink
fix(chart): Remove trailing slash from default subPath value (#2076)
Browse files Browse the repository at this point in the history
  • Loading branch information
VietND96 committed Dec 22, 2023
1 parent c914033 commit a1082c2
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 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.26.3
version: 0.26.4
appVersion: 4.16.1-20231219
icon: https://github.com/SeleniumHQ/docker-selenium/raw/trunk/logo.png
dependencies:
Expand Down
2 changes: 1 addition & 1 deletion charts/selenium-grid/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ Get the url of the grid. If the external url can be figured out from the ingress
{{- end -}}

{{- define "seleniumGrid.url.subPath" -}}
{{- $subPath := "/" -}}
{{- $subPath := "" -}}
{{- if $.Values.isolateComponents -}}
{{- $subPath = default $subPath $.Values.components.subPath -}}
{{- else -}}
Expand Down
4 changes: 3 additions & 1 deletion charts/selenium-grid/templates/hub-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ spec:
failureThreshold: {{ .Values.hub.readinessProbe.failureThreshold }}
{{- end }}
env:
{{- with .Values.hub.subPath }}
- name: SE_SUB_PATH
value: {{ .Values.hub.subPath }}
value: {{ . | quote }}
{{- end }}
{{- if eq .Values.basicAuth.enabled true}}
- name: ROUTER_USERNAME
value: {{ .Values.basicAuth.username }}
Expand Down
4 changes: 3 additions & 1 deletion charts/selenium-grid/templates/router-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@ spec:
value: {{ template "seleniumGrid.sessionQueue.fullname" . }}
- name: SE_SESSION_QUEUE_PORT
value: {{ .Values.components.sessionQueue.port | quote }}
{{- with .Values.components.subPath }}
- name: SE_SUB_PATH
value: {{ .Values.components.subPath }}
value: {{ . | quote }}
{{- end }}
{{- if eq .Values.basicAuth.enabled true}}
- name: ROUTER_USERNAME
value: {{ .Values.basicAuth.username }}
Expand Down
4 changes: 2 additions & 2 deletions charts/selenium-grid/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ components:
priorityClassName: ""

# Custom sub path for all components
subPath: /
subPath: ""

# Custom environment variables for all components
extraEnvironmentVariables:
Expand Down Expand Up @@ -338,7 +338,7 @@ hub:
periodSeconds: 10
successThreshold: 1
# Custom sub path for the hub deployment
subPath: /
subPath: ""
# Custom environment variables for selenium-hub
extraEnvironmentVariables:
# - name: SE_JAVA_OPTS
Expand Down

0 comments on commit a1082c2

Please sign in to comment.