Skip to content

Commit 9bd4d8a

Browse files
authored
K8s: Add ability to config trigger name (#2777)
1 parent b6c1227 commit 9bd4d8a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

charts/selenium-grid/templates/_helpers.tpl

+3
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ triggers:
257257
authenticationRef:
258258
name: {{ template "seleniumGrid.autoscaling.authenticationRef.fullname" $ }}
259259
useCachedMetrics: {{ $.Values.autoscaling.useCachedMetrics }}
260+
{{- if $.Values.autoscaling.triggerName }}
261+
name: {{ $.Values.autoscaling.triggerName | quote }}
262+
{{- end }}
260263
{{- if and (eq $.Values.autoscaling.scalingType "deployment") $.Values.autoscaling.metricType }}
261264
metricType: {{ $.Values.autoscaling.metricType }}
262265
{{- end }}

charts/selenium-grid/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,8 @@ autoscaling:
10191019
# Configuration for ScaledObject triggers https://keda.sh/docs/latest/reference/scaledobject-spec/#triggers
10201020
# -- Enables caching of metric values during polling interval (as specified in .spec.pollingInterval, the default: false in KEDA).
10211021
useCachedMetrics: false
1022+
# -- Set trigger name.
1023+
triggerName: ""
10221024
# -- The type of metric that should be used (The default: AverageValue in KEDA)
10231025
metricType: ""
10241026
# -- Annotations for KEDA resources: ScaledObject and ScaledJob

0 commit comments

Comments
 (0)