-
Notifications
You must be signed in to change notification settings - Fork 972
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
Optimize bind event update logic #3622
Optimize bind event update logic #3622
Conversation
wangyang0616
commented
Jul 25, 2024
•
edited
Loading
edited
- Optimize the processing logic of Volcano bind interface, and uniformly handle event events and condition updates in the cache Bind interface.
- The Bind interface in Binder only handles binding actions and does not involve event updates. It is more convenient to rewrite this capability when other projects reference the Volcano framework for Bind redevelopment.
- Optimize error and processing logic.
9e3f974
to
2bbb1dd
Compare
/lgtm |
@@ -99,7 +99,7 @@ type VolumeBinder interface { | |||
|
|||
// Binder interface for binding task and hostname | |||
type Binder interface { | |||
Bind(kubeClient kubernetes.Interface, tasks []*api.TaskInfo) ([]*api.TaskInfo, []error) |
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.
@wangyang0616 Do we have to change the interface? I am afraid of the compatibility.
Is there any better way to solve this problem?
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.
This interface was first broken in https://github.com/volcano-sh/volcano/pull/3547/files.
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: william-wang 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 |
Signed-off-by: wangyang <[email protected]>
2bbb1dd
to
4864b1b
Compare
/lgtm |