-
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
Keda Admission Webhook rejects ScaledObject requests that use Range Limit #5348
Comments
Yeah, makes sense totally. The admission webhook should check if there is any default value set by Range Limit. |
Unfortunately I don't have any experience in Go 😅 |
@JorTurFer i would like to work on this issue |
Nice! |
@asoundarya96 Are you working on this? Else, I want to give it a try. |
@Bhargav-InfraCloud I think you can proceed with this, we plan to do a new release later this week, we can include this if you are able to tackle it soon :) |
Sure @zroubalik. Thanks! Working on it. |
Hi team, |
Report
Keda Admission Webhook fails ScaledObject requests with memory/CPU triggers that don't have memory/CPU request defined although Range Limit is defined in the namespace.
This bug report is similar to #4802 , but if Range Limit is defined with defaults limit and requests for CPU and memory, then Admission Webhook should not reject workload that define only limit, or only requests, or a combination of both.
Expected Behavior
Based on Kubernetes documentation for default memory and CPU, ScaledObject with memory and/or CPU triggers of a deployment with no requests or limits on the relevant scaler, should not be rejected by Keda Admission Webhook if a Range Limit is define with default limit and requests (of the relevant memory/CPU metric)
Actual Behavior
Keda Admission Webhook rejects ScaledObject request with:
admission webhook ... denied the request: the scaledobject has a memory trigger but the container ... doesn't have the memory request defined
Steps to Reproduce the Problem
Logs from KEDA operator
No response
KEDA Version
2.12.1
Kubernetes Version
1.26
Platform
Amazon Web Services
Scaler Details
Memory, CPU
Anything else?
No response
The text was updated successfully, but these errors were encountered: