-
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: don't validate workload with only resource limits set #4803
fix: don't validate workload with only resource limits set #4803
Conversation
Thank you for your contribution! 🙏 We will review your PR as soon as possible.
While you are waiting, make sure to:
Learn more about: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
I have left some comments inline.
We have to update also e2e test for covering this new scenario. ScaledObject validations are tested here: https://github.com/kedacore/keda/blob/main/tests/internals/scaled_object_validation/scaled_object_validation_test.go
/run-e2e internal |
2bbe2d7
to
5ac25b7
Compare
/run-e2e internal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking nice!
Could you add a test case on e2e tests? We already have a file for admission webhooks, so it's just add a test case there:
main/tests/internals/scaled_object_validation/scaled_object_validation_test.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
@nettoclaudio do you have an update on this please?
5ac25b7
to
bba7a77
Compare
/run-e2e internal |
/run-e2e internal |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nettoclaudio could you please rebase this PR? then we can go ahead and proceed
Signed-off-by: Claudio Netto <nettinhorama@gmail.com>
Signed-off-by: Claudio Netto <nettinhorama@gmail.com>
Signed-off-by: Claudio Netto <nettinhorama@gmail.com>
Signed-off-by: Claudio Netto <nettinhorama@gmail.com>
Signed-off-by: Claudio Netto <nettinhorama@gmail.com>
bba7a77
to
1c655d8
Compare
/run-e2e internal |
…its set Signed-off-by: Claudio Netto <nettinhorama@gmail.com>
I apologize for the delay in addressing the change request, @JorTurFer. I've added the e2e that ensures that the webhook validator will validate the underlying workload whenever it only has resource limits provided. Can you please re-run the e2e @zroubalik? |
/run-e2e internal |
/run-e2e internal |
…4803) Signed-off-by: anton.lysina <alysina@gmail.com>
Check if container resource limits were provided before rejecting the ScaledObject creation.
Checklist
Fixes #4802