Skip to content

Commit

Permalink
[#1251] Add definitions for polling interval
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Penhouet committed Feb 11, 2025
1 parent 9b9b74c commit 28d8f01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/crd/bases/http.keda.sh_httpscaledobjects.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ spec:
metric value
format: int32
type: integer
pollingInterval:
description: (optional) Polling interval in seconds for the external scaler
format: int32
type: integer
required:
- scaleTargetRef
type: object
Expand Down
3 changes: 3 additions & 0 deletions operator/apis/http/v1alpha1/httpscaledobject_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ type HTTPScaledObjectSpec struct {
// (optional) Cooldown period value
// +optional
CooldownPeriod *int32 `json:"scaledownPeriod,omitempty" description:"Cooldown period (seconds) for resources to scale down (Default 300)"`
// (optional) Configuration for the polling interval of the scaling metric
// +optional
PollingInterval *int32 `json:"pollingInterval,omitempty" description:"Polling interval (seconds) for the metric used for scaling (Default 15)"`
// (optional) Configuration for the metric used for scaling
// +optional
ScalingMetric *ScalingMetricSpec `json:"scalingMetric,omitempty" description:"Configuration for the metric used for scaling. If empty 'concurrency' will be used"`
Expand Down

0 comments on commit 28d8f01

Please sign in to comment.