diff --git a/pkg/hostpath/controllerserver.go b/pkg/hostpath/controllerserver.go index b1ac70dae..a04874c22 100644 --- a/pkg/hostpath/controllerserver.go +++ b/pkg/hostpath/controllerserver.go @@ -129,12 +129,13 @@ func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol // request if exVol.VolSize >= int64(req.GetCapacityRange().GetRequiredBytes()) { // exisiting volume is compatible with new request and should be reused. - // TODO (sbezverk) Do I need to make sure that RBD volume still exists? + // TODO (sbezverk) Do I need to make sure that volume still exists? return &csi.CreateVolumeResponse{ Volume: &csi.Volume{ VolumeId: exVol.VolID, CapacityBytes: int64(exVol.VolSize), VolumeContext: req.GetParameters(), + ContentSource: req.GetVolumeContentSource(), }, }, nil }