-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Graceful shutdown timeout #4571
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
Graceful shutdown timeout #4571
Conversation
Signed-off-by: Elliot Fehr <[email protected]>
Signed-off-by: Elliot Fehr <[email protected]>
6a765eb
to
33181cf
Compare
Signed-off-by: Elliot Fehr <[email protected]>
de728cd
to
d7de15c
Compare
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.
In general I'm ok with allowing flag overrides of operator values. I will say, now that controller-runtime supports a config, flags should be added in controller-runtime using component-base's cli/flag
lib to get these flags for free. I'm ok adding a one-off flag like this now as long as the name aligns with what would be added in controller-runtime so config flags can be switched in later without a breaking change.
@@ -0,0 +1,5 @@ | |||
entries: | |||
- description: > | |||
For Ansible-based operators, allow passing a --drain-time to configure the duration the manager should wait before stopping. |
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.
Why call this --drain-time? Does this terminology come from somewhere?
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.
No real reason or preference here. Any suggestions for what to name it?
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.
--graceful-shutdown-timeout
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.
Updated all references!
Signed-off-by: Elliot Fehr <[email protected]>
Signed-off-by: Elliot Fehr <[email protected]>
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
Signed-off-by: reinvantveer <[email protected]>
Description of the change:
Adds a
--drain-time
to ansible based operatorsMotivation for the change:
This is configurable in the manager but not possible to override using environment variables or CLI flags for roles that might take more than the 30 second default to complete.
Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments
(seechangelog/fragments/00-template.yaml
)website/content/en/docs