Skip to content

Commit

Permalink
fix: remove slash in hostpath when using datasource rdma
Browse files Browse the repository at this point in the history
Signed-off-by: bjwswang <[email protected]>
  • Loading branch information
bjwswang committed Jan 9, 2024
1 parent 03a351a commit 65f8723
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 65f8723

Please sign in to comment.