-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Refactor to use structure to pass parameters for GracefulNodeShutdown #105652
Refactor to use structure to pass parameters for GracefulNodeShutdown #105652
Conversation
8e55f8e
to
bd163bb
Compare
/priority backlog |
/triage accepted |
clock: clock.RealClock{}, | ||
probeManager: probeManager, | ||
func NewManager(conf *Config) (Manager, lifecycle.PodAdmitHandler) { | ||
if conf.ShutdownGracePeriodRequested == 0 && conf.ShutdownGracePeriodCriticalPods == 0 { |
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.
Can we add unit test that this config (ShutdownGracePeriodRequested = 0 and ShutdownGracePeriodCriticalPods = 0) will return stub manager that performs no-ops? We previously had TestFeatureEnabled
unit test for this.
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.
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 updating!
a5a444e
to
e47c78a
Compare
/retest |
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrunalp, wzshiming The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
/kind cleanup
What this PR does / why we need it:
Which issue(s) this PR fixes:
xref #102915
Special notes for your reviewer:
#102915, I think this naming is still a bit controversial, I sent a new PR to do the refactoring part to use structure to pass parameters to reduce the workload of conflict resolution.
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/cc @mrunalp @bobbypage