Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions charts/selenium-grid/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ triggers:
authenticationRef:
name: {{ template "seleniumGrid.autoscaling.authenticationRef.fullname" $ }}
useCachedMetrics: {{ $.Values.autoscaling.useCachedMetrics }}
{{- if $.Values.autoscaling.triggerName }}
name: {{ $.Values.autoscaling.triggerName | quote }}
{{- end }}
{{- if and (eq $.Values.autoscaling.scalingType "deployment") $.Values.autoscaling.metricType }}
metricType: {{ $.Values.autoscaling.metricType }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions charts/selenium-grid/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,8 @@ autoscaling:
# Configuration for ScaledObject triggers https://keda.sh/docs/latest/reference/scaledobject-spec/#triggers
# -- Enables caching of metric values during polling interval (as specified in .spec.pollingInterval, the default: false in KEDA).
useCachedMetrics: false
# -- Set trigger name.
triggerName: ""
# -- The type of metric that should be used (The default: AverageValue in KEDA)
metricType: ""
# -- Annotations for KEDA resources: ScaledObject and ScaledJob
Expand Down
Loading