Skip to content

Commit

Permalink
Update InititalCooldownPeriod to *int32
Browse files Browse the repository at this point in the history
Signed-off-by: Shay Rybak <[email protected]>
  • Loading branch information
shayrybak committed Dec 22, 2024
1 parent ca033f1 commit 0c40f9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion operator/apis/http/v1alpha1/httpscaledobject_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type HTTPScaledObjectSpec struct {
CooldownPeriod *int32 `json:"scaledownPeriod,omitempty" description:"Cooldown period (seconds) for resources to scale down (Default 300)"`
// (optional) Initial period before scaling
// +optional
InitialCooldownPeriod int32 `json:"initialCooldownPeriod,omitempty" description:"Initial period (seconds) before scaling (Default 0)"`
InitialCooldownPeriod *int32 `json:"initialCooldownPeriod,omitempty" description:"Initial period (seconds) before scaling (Default 0)"`
// (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
2 changes: 1 addition & 1 deletion pkg/k8s/scaledobject.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewScaledObject(
minReplicas *int32,
maxReplicas *int32,
cooldownPeriod *int32,
initialCooldownPeriod int32,
initialCooldownPeriod *int32,
) *kedav1alpha1.ScaledObject {
return &kedav1alpha1.ScaledObject{
TypeMeta: metav1.TypeMeta{
Expand Down

0 comments on commit 0c40f9d

Please sign in to comment.