volcano
volcano copied to clipboard
fix: task-topology plugin cannot handle the tasks whose name contains `-`
fix #2939
Welcome @loheagn! It looks like this is your first PR to volcano-sh/volcano 🎉
@wangyang0616 Please help me trigger the CI of this PR
how about add some comments of the task name format in following codes. The task's name is from pod name which generate by job controlller.
i := len(task.Name) - 1
for ; task.Name[i] != '-'; i-- {
}
tmpTaskName := strings.TrimPrefix(task.Name[:i], jobNamePrefix)
FYI: https://github.com/volcano-sh/volcano/blob/ed5c215d415d98845949d0fde6707cab29621989/pkg/controllers/job/job_controller_util.go#L39
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
@lowang-bh Hi, could help to reopen this pr? I forget to update this pr for a long time......
/reopen
@lowang-bh: Reopened this PR.
In response to this:
/reopen
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.
@loheagn Hi, are you still work on this?
@loheagn Hi, are you still work on this?
@Monokaix Yes, but I dismiss the reopen event.....
I'll update the code recently.
@Monokaix Hi, I fixed the CI and this pr is ready for review
/lgtm
hello, @Monokaix could we move this PR forward?
[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
- ~~pkg/scheduler/plugins/OWNERS~~ [william-wang]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment