From a1014730915cc9e27681656965a2f4a6afea1908 Mon Sep 17 00:00:00 2001 From: zjx20 Date: Wed, 10 Apr 2024 16:23:00 +0800 Subject: [PATCH] fix: don't pass confusing value to GetCapacityRequest.VolumeCapabilities --- pkg/capacity/capacity.go | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/pkg/capacity/capacity.go b/pkg/capacity/capacity.go index 864ecd62a3..f885bb727d 100644 --- a/pkg/capacity/capacity.go +++ b/pkg/capacity/capacity.go @@ -591,17 +591,8 @@ func (c *Controller) syncCapacity(ctx context.Context, item workItem) error { req := &csi.GetCapacityRequest{ Parameters: sc.Parameters, - // The assumption is that the capacity is independent of the - // capabilities. The standard makes it mandatory to pass something, - // therefore we pick something rather arbitrarily. - VolumeCapabilities: []*csi.VolumeCapability{ - { - AccessType: &csi.VolumeCapability_Mount{}, - AccessMode: &csi.VolumeCapability_AccessMode{ - Mode: csi.VolumeCapability_AccessMode_UNKNOWN, - }, - }, - }, + // The assumption is that the capacity is independent of the capabilities. + VolumeCapabilities: nil, } if item.segment != nil { req.AccessibleTopology = &csi.Topology{