-
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
fix!: fix CheckFallbackValid logic #6538
Conversation
b65860d
to
613c653
Compare
@zroubalik @JorTurFer If any of you guys has time to look into this 😅 , I think this needs to be released in v2.17.0 along with the rest of changes. |
Actually, CPU and memory support
|
lol, my point was literally your message 🤦 |
/run-e2e fallback |
8af61c3
to
e931267
Compare
I feel like this needs to get merged before the 2.17 release @JorTurFer |
PTAL @zroubalik @wozniakjan |
I see that the changelog is missing anyway. Can you add it? |
797c6d2
to
00a8ca6
Compare
@rickbrouwer There was already a fix for this very part that added a changelog line. I though I might append my PR to the same line but apparently it fails the CI check. Should I replace the line, or append a new line? |
I think a new line to the other one with a description of what makes this PR different from the previous one so that both pull requests are mentioned. This also for some traceability. |
Signed-off-by: Youssef Rabie <[email protected]>
00a8ca6
to
e1e0434
Compare
/run-e2e fallback |
This fixes the
CheckFallbackValid
logic used in the admission webhook. The way it should go is:If we are using
ScalingModifiers
andScaledObject.Spec.Advanced.ScalingModifiers.MetricType
is notAverageValue
, then this is invalid. So, this becomes inline with the change in fix: fix isFallbackEnabled when using scaling modifiers #6521If we are not using
ScalingModifiers
AverageValue
type, then fallback is invalid.AverageValue
type, then fallback is valid. This is actually inline with the code logic with the functiondoFallback
, where it is called for everymetricSpec
that has the typeAverageValue
.The PR #6407 seems related to this. I am not sure what it is trying to do per se with regards to the cpu and memory. Because it seems to be logging instead of returning the error when encountering cpu/memory, then falling to the next if condition which will return the error either way
Checklist