Skip to content

Commit a5e89c3

Browse files
authored
Merge pull request #137 from Madhu-1/fix-contentSource
Add VolumeContentSource to CreateVolumeResponse
2 parents c36cd8e + dadaa9d commit a5e89c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/hostpath/controllerserver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,13 @@ func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVol
129129
// request
130130
if exVol.VolSize >= int64(req.GetCapacityRange().GetRequiredBytes()) {
131131
// exisiting volume is compatible with new request and should be reused.
132-
// TODO (sbezverk) Do I need to make sure that RBD volume still exists?
132+
// TODO (sbezverk) Do I need to make sure that volume still exists?
133133
return &csi.CreateVolumeResponse{
134134
Volume: &csi.Volume{
135135
VolumeId: exVol.VolID,
136136
CapacityBytes: int64(exVol.VolSize),
137137
VolumeContext: req.GetParameters(),
138+
ContentSource: req.GetVolumeContentSource(),
138139
},
139140
}, nil
140141
}

0 commit comments

Comments
 (0)