Skip to content

Commit fb86e41

Browse files
committed
K8s: Add chart config autoscaling.setReplicasInSpec in case ArgoCD with AutoSync
[skip ci] Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
1 parent bb90372 commit fb86e41

File tree

6 files changed

+8
-5
lines changed

6 files changed

+8
-5
lines changed

charts/selenium-grid/CONFIGURATION.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# selenium-grid
22

3-
![Version: 0.44.0](https://img.shields.io/badge/Version-0.44.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.33.0-20250525](https://img.shields.io/badge/AppVersion-4.33.0--20250525-informational?style=flat-square)
3+
![Version: 0.44.1](https://img.shields.io/badge/Version-0.44.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 4.33.0-20250525](https://img.shields.io/badge/AppVersion-4.33.0--20250525-informational?style=flat-square)
44

55
A Helm chart for creating a Selenium Grid Server in Kubernetes
66

@@ -390,6 +390,7 @@ A Helm chart for creating a Selenium Grid Server in Kubernetes
390390
| autoscaling.enabled | bool | `false` | Enable autoscaling. Implies installing KEDA |
391391
| autoscaling.enableWithExistingKEDA | bool | `false` | Enable autoscaling without automatically installing KEDA |
392392
| autoscaling.scalingType | string | `"job"` | Which type of KEDA scaling to use: job or deployment |
393+
| autoscaling.setReplicasInSpec | bool | `true` | Force remove replicas in deployment spec in case ArgoCD with AutoSync enabled will try to resolve back to desired state |
393394
| autoscaling.authenticationRef | object | `{"annotations":{"helm.sh/hook":"post-install,post-upgrade,post-rollback","helm.sh/hook-weight":"0"},"name":""}` | Specify an external KEDA TriggerAuthentication resource is used for scaler triggers config. Apply for all browser nodes |
394395
| autoscaling.useCachedMetrics | bool | `false` | Enables caching of metric values during polling interval (as specified in .spec.pollingInterval, the default: false in KEDA). |
395396
| autoscaling.triggerName | string | `""` | Set trigger name. |

charts/selenium-grid/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ 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.44.0
5+
version: 0.44.1
66
appVersion: 4.33.0-20250525
77
icon: https://github.com/SeleniumHQ/docker-selenium/raw/trunk/logo.png
88
dependencies:

charts/selenium-grid/templates/chrome-node-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
{{- template "seleniumGrid.updateStrategy" (list $nodeConfig $.Values.global.seleniumGrid) }}
2222
{{- if not (eq (include "seleniumGrid.useKEDA" $) "true") }}
2323
replicas: {{ $nodeConfig.replicas }}
24-
{{- else }}
24+
{{- else if $.Values.autoscaling.setReplicasInSpec }}
2525
replicas: {{ default $.Values.autoscaling.scaledOptions.minReplicaCount ($nodeConfig.scaledOptions).minReplicaCount }}
2626
{{- end }}
2727
revisionHistoryLimit: {{ $.Values.global.seleniumGrid.revisionHistoryLimit }}

charts/selenium-grid/templates/edge-node-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
{{- template "seleniumGrid.updateStrategy" (list $nodeConfig $.Values.global.seleniumGrid) }}
2222
{{- if not (eq (include "seleniumGrid.useKEDA" $) "true") }}
2323
replicas: {{ $nodeConfig.replicas }}
24-
{{- else }}
24+
{{- else if $.Values.autoscaling.setReplicasInSpec }}
2525
replicas: {{ default $.Values.autoscaling.scaledOptions.minReplicaCount ($nodeConfig.scaledOptions).minReplicaCount }}
2626
{{- end }}
2727
revisionHistoryLimit: {{ $.Values.global.seleniumGrid.revisionHistoryLimit }}

charts/selenium-grid/templates/firefox-node-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ spec:
2121
{{- template "seleniumGrid.updateStrategy" (list $nodeConfig $.Values.global.seleniumGrid) }}
2222
{{- if not (eq (include "seleniumGrid.useKEDA" $) "true") }}
2323
replicas: {{ $nodeConfig.replicas }}
24-
{{- else }}
24+
{{- else if $.Values.autoscaling.setReplicasInSpec }}
2525
replicas: {{ default $.Values.autoscaling.scaledOptions.minReplicaCount ($nodeConfig.scaledOptions).minReplicaCount }}
2626
{{- end }}
2727
revisionHistoryLimit: {{ $.Values.global.seleniumGrid.revisionHistoryLimit }}

charts/selenium-grid/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,8 @@ autoscaling:
10131013
enableWithExistingKEDA: false
10141014
# -- Which type of KEDA scaling to use: job or deployment
10151015
scalingType: job
1016+
# -- Force remove replicas in deployment spec in case ArgoCD with AutoSync enabled will try to resolve back to desired state
1017+
setReplicasInSpec: true
10161018
# -- Specify an external KEDA TriggerAuthentication resource is used for scaler triggers config. Apply for all browser nodes
10171019
authenticationRef:
10181020
name: ""

0 commit comments

Comments
 (0)