-
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: Validate empty array value of triggers in ScaledObject/ScaledJob creation #5524
fix: Validate empty array value of triggers in ScaledObject/ScaledJob creation #5524
Conversation
/run-e2e internal |
/run-e2e internal |
Can we extend this PR to cover ScaledJobs too? |
Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>
Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>
Extended ScaledJob too |
/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.
Could you please also add a validation into controllers? in case webhooks are disabled. Thanks!
Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>
Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>
Added a validation in the controller |
/run-e2e internal |
Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>
/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.
LGTM, thanks!
… creation (kedacore#5524) Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>
Add validation in ValidateTriggers() to prevent an empty array value of triggers so that some unexpected HPA will not be created
Checklist
Fixes #
Relates to # #5520