-
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
add InitialCooldownPeriod
for ScaledObjects
#5478
Conversation
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.
Thanks for the contribution!
Looking good! I've kept some comments inline, but as global comment, could you add some coverage to the change? Maybe an e2e test or maybe unit test
Hi, @JorTurFer is this PR getting merged anytime soon? Our current workaround for handling the delay at the time of deployment is causing challenges. This feature will be very helpful for many of our use cases. |
I hope so, but the feature isn't ready to merge yet because test coverage is required. IDK the state of it, @xrwang8 ? |
I've added e2e testing. @JorTurFer |
What's wrong with that now @JorTurFer |
Hi @JorTurFer , could you plz. check this PR. E2E test has been added by @xrwang8 |
/run-e2e initial_delay_cooldownperiod |
tests/internals/initial_delay_cooldownperiod/initial_delay_cooldownperiod_test.go
Outdated
Show resolved
Hide resolved
tests/internals/initial_delay_cooldownperiod/initial_delay_cooldownperiod_test.go
Outdated
Show resolved
Hide resolved
Sorry, I've been quite disconnected :( I have left some comments inline. Apart from them ,we need to fix DCO check for merging the PR, you can find the steps to fix it in the check itself |
…f CooldownPeriod and e2e Signed-off-by: wangxingrui <xrwang8@gamil.com>
Signed-off-by: wangxingrui <xrwang8@gamil.com>
I have simplified e2e @JorTurFer |
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 for the improvement!
/run-e2e internal |
Could you open a PR against docs repo too, adding this new parameter to the ScaledObject docs? |
ok |
I have modified the document kedacore/keda-docs#1337 @JorTurFer |
Let me check them, sorry for the delay... last week was KubeCon EU |
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!
Could you add a record in changelog.md file too? I think that #New section is the best place for this feature
…eter to ScaledObject Signed-off-by: wangxingrui <xrwang8@gamil.com>
i hava already done @JorTurFer |
Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
/run-e2e internal |
@zroubalik PTAL |
What is the current status of this PR? @JorTurFer |
It's ready to merge IMHO, but I'd like to read @zroubalik thoughts too :) |
Hey! @zroubalik , could you please take a look at this. This will save a bit of development for us. Thank you. |
Co-authored-by: Zbynek Roubalik <zroubalik@gmail.com> Signed-off-by: xrwang <68765051+xrwang8@users.noreply.github.com>
Signed-off-by: wangxingrui <xrwang8@gmail.com>
@zroubalik done |
Signed-off-by: xrwang <68765051+xrwang8@users.noreply.github.com>
Signed-off-by: wangxingrui <xrwang8@gmail.com>
Signed-off-by: wangxingrui <xrwang8@gmail.com>
/run-e2e internals |
@JorTurFer can it be merged ? |
InitialCooldownPeriod
for ScaledObjects
… of CooldownPeriod
·Add a new field InitialDelayCooldownPeriod The purpose of adding a new field InitialDelayCooldownPeriod is to delay the effective time of the CooldownPeriod, so that when the service is started for the first time, it needs to wait for the time of InitialDelayCooldownPeriod to expire before destroying the service.
Checklist
Fixes #5008
Relates to #