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: fix isFallbackEnabled when using scaling modifiers #6521

Merged

Conversation

y-rabie
Copy link
Contributor

@y-rabie y-rabie commented Feb 2, 2025

Currently, the behavior when using ScalingModifiers is that if any of the triggers has a metric type of AverageValue then fallback is enabled. Intuitively, this is not accurate. When using ScalingModifiers, we should only care about its metricType, no matter what metricSpec is passed to the current call of isFallbackEnabled.

Also, this helps with the fact that currently, doFallback assumes that the metric type when using ScalingModifiers is AverageValue without any kind of checking, which under the current implementation, is not guaranteed to be the case.

Checklist

@y-rabie y-rabie requested a review from a team as a code owner February 2, 2025 13:29
@y-rabie y-rabie force-pushed the fix-isFallbackEnabled-scaling-modifiers branch 2 times, most recently from 98d3839 to 96d98ae Compare February 2, 2025 14:10
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.

nice catch! 🚀
Thanks a lot for the fix 😄

@JorTurFer
Copy link
Member

JorTurFer commented Feb 3, 2025

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

@zroubalik
Copy link
Member

@y-rabie could you please update the changelog?

@y-rabie y-rabie force-pushed the fix-isFallbackEnabled-scaling-modifiers branch from aef7d35 to 35f5bc8 Compare February 6, 2025 22:51
@zroubalik
Copy link
Member

zroubalik commented Feb 7, 2025

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

@zroubalik zroubalik enabled auto-merge (squash) February 7, 2025 13:41
@zroubalik zroubalik merged commit 14f1fea into kedacore:main Feb 7, 2025
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants