Skip to content

Commit 595a983

Browse files
authored
Make ingress compatible with format prior to 1.19-0 k8s version (#1798)
* Make ingress compatible with format prior to 1.19-0 k8s version * Modify CHANGELOG.md * Modify Chart version
1 parent 2670ff3 commit 595a983

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
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.15.3
6+
7+
### Changed
8+
- Make ingress compatible with format prior to 1.19-0 k8s version
9+
510
## :heavy_check_mark: 0.15.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.15.2
5+
version: 0.15.3
66
appVersion: 4.8.1-20230221
77
icon: https://github.com/SeleniumHQ/docker-selenium/raw/trunk/logo.png

charts/selenium-grid/templates/ingress.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ spec:
4444
{{- else }}
4545
- http:
4646
{{- end }}
47+
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.Version }}
4748
paths:
4849
- path: /
4950
pathType: Prefix
@@ -58,4 +59,16 @@ spec:
5859
port:
5960
number: {{ $.Values.hub.port }}
6061
{{- end }}
62+
{{- else }}
63+
paths:
64+
- path: /
65+
backend:
66+
{{- if $.Values.isolateComponents }}
67+
serviceName: {{ template "seleniumGrid.router.fullname" $ }}
68+
servicePort: {{ $.Values.components.router.port }}
69+
{{- else }}
70+
serviceName: {{ template "seleniumGrid.hub.fullname" $ }}
71+
servicePort: {{ $.Values.hub.port }}
72+
{{- end }}
73+
{{- end }}
6174
{{- end }}

0 commit comments

Comments
 (0)