Skip to content

Commit 4c0d9d9

Browse files
committed
chart(rollback): config ingress.enabled to create ingress resource only
Fixes meaning of ingress.enabled in #2372 Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 4e00e3e commit 4c0d9d9

File tree

9 files changed

+27
-22
lines changed

9 files changed

+27
-22
lines changed

Diff for: .github/workflows/deploy.yml

+9-6
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ jobs:
133133
uses: nick-invision/retry@master
134134
with:
135135
timeout_minutes: 20
136-
max_attempts: 3
137-
retry_wait_seconds: 120
136+
max_attempts: 5
137+
retry_wait_seconds: 300
138+
continue_on_error: true
138139
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release
139140
- name: Tag images as latest
140141
if: github.event.inputs.skip-build-push-image != 'true'
@@ -144,16 +145,18 @@ jobs:
144145
uses: nick-invision/retry@master
145146
with:
146147
timeout_minutes: 20
147-
max_attempts: 3
148-
retry_wait_seconds: 120
148+
max_attempts: 5
149+
retry_wait_seconds: 300
150+
continue_on_error: true
149151
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release_latest
150152
- name: Tag browser images
151153
if: github.event.inputs.skip-build-push-image != 'true'
152154
uses: nick-invision/retry@master
153155
with:
154156
timeout_minutes: 20
155-
max_attempts: 3
156-
retry_wait_seconds: 120
157+
max_attempts: 5
158+
retry_wait_seconds: 300
159+
continue_on_error: true
157160
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} PUSH_IMAGE=true make tag_and_push_browser_images
158161
- name: Delete previous nightly tag & release if any
159162
uses: dev-drprasad/delete-tag-and-release@master

Diff for: charts/selenium-grid/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
- repository: https://kubernetes.github.io/ingress-nginx
1414
version: 4.11.2
1515
name: ingress-nginx
16-
condition: ingress.enabled, ingress-nginx.enabled
16+
condition: ingress.enableWithController, ingress-nginx.enabled
1717
- repository: https://jaegertracing.github.io/helm-charts
1818
version: 3.2.0
1919
name: jaeger

Diff for: charts/selenium-grid/README.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,7 @@ Below is an example of Grid UI accessible via NodePort with secure connection, a
719719

720720
```bash
721721
helm upgrade -i $RELEASENAME -n $NAMESPACE docker-selenium/selenium-grid \
722-
--set ingress.enableWithExistingController=false \
722+
--set ingress.enabled=false \
723723
--set isolateComponents=true \
724724
--set components.router.serviceType=NodePort \
725725
--set tls.enabled=true \
@@ -786,14 +786,12 @@ For example, below is the config with using external TLS Secret for the Ingress
786786

787787
```yaml
788788
ingress:
789+
enableWithController: true
789790
hostname: selenium-grid.prod.domain.com
790791
tls:
791792
- secretName: my-external-tls-secret
792793
hosts:
793794
- selenium-grid.prod.domain.com
794-
795-
ingress-ngnix:
796-
enabled: true
797795
```
798796

799797
In case the Ingress resource is configured without `hostname` and `tls`, the incoming traffic access via `global.K8S_PUBLIC_IP`. When sub-chart `ingress-nginx` is enabled (deploy Ingress NGINX Controller together), the default TLS secret can also be assigned via `ingress-nginx.controller.extraArgs.default-ssl-certificate`.
@@ -802,7 +800,7 @@ For example (replace `$RELEASENAME` and `$NAMESPACE` with your values):
802800
```bash
803801
helm upgrade -i $RELEASENAME -n $NAMESPACE docker-selenium/selenium-grid \
804802
--set global.K8S_PUBLIC_IP=$(hostname -i) \
805-
--set tls.ingress.enabled=true \
803+
--set tls.ingress.enableWithController=true \
806804
--set tls.nameOverride=my-external-tls-secret \
807805
--set ingress-nginx.controller.extraArgs.default-ssl-certificate=$NAMESPACE/my-external-tls-secret
808806
```
@@ -894,8 +892,8 @@ This table contains the configuration parameters of the chart and their default
894892
| `busConfigMap.annotations` | `{}` | Custom annotations for configmap |
895893
| `nodeConfigMap.nameOverride` | `` | Name of the configmap that contains common environment variables for browser nodes |
896894
| `nodeConfigMap.annotations` | `{}` | Custom annotations for configmap |
897-
| `ingress.enabled` | `false` | Enable ingress. Implies installing Ingress NGINX Controller |
898-
| `ingress.enableWithExistingController` | `true` | Enable ingress without automatically installing Ingress NGINX Controller |
895+
| `ingress.enabled` | `true` | Enable to create ingres resource |
896+
| `ingress.enableWithController` | `false` | Enable ingress resource with automatically installing Ingress NGINX Controller |
899897
| `ingress.className` | `""` | Name of ingress class to select which controller will implement ingress resource |
900898
| `ingress.annotations` | `{}` | Custom annotations for ingress resource |
901899
| `ingress.nginx.proxyTimeout` | `3600` | Value is used to set for NGINX ingress annotations related to proxy timeout |

Diff for: charts/selenium-grid/templates/_helpers.tpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Is autoscaling using KEDA enabled
164164
Is ingress enabled
165165
*/}}
166166
{{- define "seleniumGrid.ingress.enabled" -}}
167-
{{- or .Values.ingress.enabled .Values.ingress.enableWithExistingController | ternary "true" "" -}}
167+
{{- or .Values.ingress.enabled .Values.ingress.enableWithController | ternary "true" "" -}}
168168
{{- end -}}
169169

170170
{{/*

Diff for: charts/selenium-grid/values.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ rbacRoleBinding:
126126

127127
# Configure the ingress resource to access the Grid installation.
128128
ingress:
129-
# Enable ingress. Implies installing Ingress NGINX Controller
130-
enabled: false
131-
# Enable ingress without automatically installing Ingress NGINX Controller
132-
enableWithExistingController: true
129+
# Enable to create ingress resource
130+
enabled: true
131+
# Enable ingress resource with automatically installing Ingress NGINX Controller
132+
enableWithController: false
133133
# Name of ingress class to select which controller will implement ingress resource
134134
className: ""
135135
# Refer to list nginx annotations: https://github.com/kubernetes/ingress-nginx/blob/main/docs/user-guide/nginx-configuration/annotations.md#annotations

Diff for: tests/charts/ci/DeploymentAutoscaling-values.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ chromeNode:
3434
# NodePort will be assigned randomly if not set
3535
nameOverride: my-chrome-name
3636
extraEnvironmentVariables: &extraEnvironmentVariables
37+
- name: SE_BROWSER_ARGS_DISABLE_FEATURES
38+
value: "--disable-features=OptimizationGuideModelDownloading,OptimizationHintsFetching,OptimizationTargetPrediction,OptimizationHints"
39+
- name: SE_BROWSER_ARGS_DISABLE_SEARCH_ENGINE
40+
value: "--disable-search-engine-choice-screen"
3741
- name: SE_NODE_ENABLE_MANAGED_DOWNLOADS
3842
value: "true"
3943
- name: SE_VNC_NO_PASSWORD

Diff for: tests/charts/ci/base-auth-ingress-values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ serverConfigMap:
88
SE_SUPERVISORD_LOG_LEVEL: "info"
99

1010
ingress:
11-
enabled: true
11+
enableWithController: true
1212
className: nginx
1313
hostname: ""
1414

Diff for: tests/charts/make/chart_test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ fi
188188
if [ "${SERVICE_TYPE_NODEPORT}" = "true" ]; then
189189
HELM_COMMAND_SET_IMAGES="${HELM_COMMAND_SET_IMAGES} \
190190
--set ingress.enabled=false \
191-
--set ingress.enableWithExistingController=false \
191+
--set ingress.enableWithController=false \
192192
--set hub.serviceType=NodePort \
193193
--set components.router.serviceType=NodePort \
194194
"

Diff for: tests/charts/refValues/simplex-minikube.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ tls:
2020
generateTLS: true
2121

2222
ingress:
23-
enabled: true
23+
enableWithController: true
2424
annotations:
2525
nginx.ingress.kubernetes.io/use-regex: "true"
2626
nginx.ingress.kubernetes.io/rewrite-target: /$2

0 commit comments

Comments
 (0)