Skip to content

Commit a101473

Browse files
committed
fix: don't pass confusing value to GetCapacityRequest.VolumeCapabilities
1 parent 91e80e5 commit a101473

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

pkg/capacity/capacity.go

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -591,17 +591,8 @@ func (c *Controller) syncCapacity(ctx context.Context, item workItem) error {
591591

592592
req := &csi.GetCapacityRequest{
593593
Parameters: sc.Parameters,
594-
// The assumption is that the capacity is independent of the
595-
// capabilities. The standard makes it mandatory to pass something,
596-
// therefore we pick something rather arbitrarily.
597-
VolumeCapabilities: []*csi.VolumeCapability{
598-
{
599-
AccessType: &csi.VolumeCapability_Mount{},
600-
AccessMode: &csi.VolumeCapability_AccessMode{
601-
Mode: csi.VolumeCapability_AccessMode_UNKNOWN,
602-
},
603-
},
604-
},
594+
// The assumption is that the capacity is independent of the capabilities.
595+
VolumeCapabilities: nil,
605596
}
606597
if item.segment != nil {
607598
req.AccessibleTopology = &csi.Topology{

0 commit comments

Comments
 (0)