Skip to content
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

fix(kafka scaler):activationLagThreshold supports 0 as valid value #4143

Conversation

chalokodekare
Copy link
Contributor

@chalokodekare chalokodekare commented Jan 19, 2023

KEDA is supporting 0 as the default value for activationLagThreshold in kafka scaler. But if we set this field explicitly with the 0 value, KEDA is throwing below error:
"error":"error parsing kafka metadata: "activationLagThreshold" must be positive number"
A default should always behave the same whether you set it explicitly or leave it, if optional.

Fixed the code to accept 0 in the configuration param.

Fixes #4137

4137 support 0 in activationLagThreshold configuration in kafka scaler
as its already supported as default value
@chalokodekare chalokodekare force-pushed the ritubhandari-fix/4137-support-0-value-in-activationLagThreshold-configuration branch from 2a51610 to 2f36b4e Compare January 19, 2023 15:14
Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Thanks for the improvement

@JorTurFer JorTurFer enabled auto-merge (squash) January 19, 2023 15:32
@JorTurFer
Copy link
Member

JorTurFer commented Jan 19, 2023

/run-e2e kafka*
Update: You can check the progress here

@JorTurFer JorTurFer changed the title 4137 support 0 in activationLagThreshold configuration in kafka scaler as its already supported as default value fix(kafka scaler):activationLagThreshold supports 0 as valid value Jan 19, 2023
@JorTurFer JorTurFer enabled auto-merge (squash) January 19, 2023 15:34
@JorTurFer JorTurFer merged commit 15805c9 into kedacore:main Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants