-
Notifications
You must be signed in to change notification settings - Fork 40k
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
Allow framework plugins to be closed #122498
Conversation
Skipping CI for Draft Pull Request. |
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @sanposhiho Could you review it? And also it would be great if you could triage the issue attached to this PR. |
/remove api-change |
/remove-kind api-change |
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.
Only nits
/release-note-edit
|
@sanposhiho, |
/retest |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, Gekko0114 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 |
@alculquicondor , @Huang-Wei , |
LGTM. Thanks /lgtm (leaving unhold to Aldo) |
LGTM label has been added. Git tree hash: 98333eda2652a11d2e766dc926e5c1bd293ea769
|
/retest |
@alculquicondor @sanposhiho @Huang-Wei I fixed it, could you review it again? |
/lgtm Leave unhold for others. |
LGTM label has been added. Git tree hash: 60761bcdb39fb477d9dbb5512f66b08cae224a8d
|
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.
/hold cancel
What type of PR is this?
/kind feature
/kind api-change
What this PR does / why we need it:
This PR allows framework plugins to be closed when they satisfy a type assertion on
io.Closer
.For example, wasm plugins internally use mapped memory and it would be good to cleanly unmap them.
https://github.com/kubernetes-sigs/kube-scheduler-wasm-extension/blob/73a62c8e1abe3e0efe6c523610b3cc270cdcd1f0/scheduler/plugin/plugin.go#L443
Which issue(s) this PR fixes:
Fixes #118147
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: