-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting lagThreshold to 0 causes the keda-operator to panic #3366
Labels
bug
Something isn't working
Comments
Thanks for reporting, though I am not able to reproduce the problem, if I set
But adding an extra check before the division doesn't hurt. |
@Stii also, to pause scaling, you should use the annotation: |
3 tasks
Repository owner
moved this from In Review
to Ready To Ship
in Roadmap - KEDA Core
Jul 14, 2022
Ah, thank you so much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Report
The
lagThreshold
for a scaledobject was set to0
in an attempt to disable the SO, but this caused the keda-operator to panic, resulting in the operator going into a CrashloopBackoff state.Expected Behavior
Warn that the scaledobject has an incorrect value or prevent lagThreshold to be set to 0
Actual Behavior
The keda-operator produces
panic: runtime error: integer divide by zero
and goes into a CrashloopBackoff stateSteps to Reproduce the Problem
Logs from KEDA operator
KEDA Version
2.7.1
Kubernetes Version
1.19
Platform
Other
Scaler Details
Kafka
Anything else?
No response
The text was updated successfully, but these errors were encountered: