Skip to content

Commit

Permalink
Merge pull request #528 from bjwswang/evaluation
Browse files Browse the repository at this point in the history
fix: remove slash in hostpath when using datasource rdma
  • Loading branch information
bjwswang committed Jan 9, 2024
2 parents 459dcde + 65f8723 commit e8c1f92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/worker/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ func NewPodWorker(ctx context.Context, c client.Client, s *runtime.Scheme, w *ar
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
// /rdma/abc/uid -> /data/models
Path: fmt.Sprintf("%s/%s", d.Spec.RDMA.Path, w.GetUID()),
// The path has been restricted to contain a suffix `/`
Path: fmt.Sprintf("%s%s", d.Spec.RDMA.Path, w.GetUID()),
},
},
}
Expand Down

0 comments on commit e8c1f92

Please sign in to comment.