Report
ScaledObject with stabilizationWindowSeconds=18000 successfully applied but keda operator ignored it
Expected Behavior
ScaledObject with wrong configurations should not applied to kubernetes cluster, so user could see that something goes wrong right away
(we can simply add maximum field in CRD to do that)
Actual Behavior
I successfully created ScaledObject with stabilizationWindowSeconds equals to 18000 (5 hours)
But it turns out that HPA not created and scaling don't applied. keda operator showed this error:
2023-09-13T22:40:24Z ERROR Reconciler error {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"my-deployment","namespace":"default"}, "namespace": "default", "name": "my-deployment", "reconcileID": "98155475-32e1-4000-a034-b8397ddd357a", "error": "HorizontalPodAutoscaler.autoscaling \"keda-hpa-my-chart\" is invalid: spec.behavior.scaleDown.stabilizationWindowSeconds: Invalid value: 18000: must be less than or equal to 3600"}
Steps to Reproduce the Problem
- create ScaledObject with stabilizationWindowSeconds=18000
- ❗ no HPA created
- ❗ errors in keda operator
Logs from KEDA operator
2023-09-13T22:40:24Z ERROR Reconciler error {"controller": "scaledobject", "controllerGroup": "keda.sh", "controllerKind": "ScaledObject", "ScaledObject": {"name":"my-deployment","namespace":"default"}, "namespace": "default", "name": "my-deployment", "reconcileID": "98155475-32e1-4000-a034-b8397ddd357a", "error": "HorizontalPodAutoscaler.autoscaling \"keda-hpa-my-chart\" is invalid: spec.behavior.scaleDown.stabilizationWindowSeconds: Invalid value: 18000: must be less than or equal to 3600"}
KEDA Version
2.11.2
Kubernetes Version
1.27
Platform
Google Cloud
Scaler Details
postgresql
Anything else?
No response