diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-04-15 00:29:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-15 00:29:16 -0700 |
| commit | c2ec139c1c34f7d6653b7094fdb97c8117e1c1be (patch) | |
| tree | d5e849373c47a5fda4d38d45e798c47c5571a895 /pkg/driver/nodeserver.go | |
| parent | 5cffc070f9d3f009de526f10ac38dde80d55e644 (diff) | |
| parent | 15f316b36bd3f94aa92a9d13156b50daf445d8d4 (diff) | |
| download | seaweedfs-csi-driver-c2ec139c1c34f7d6653b7094fdb97c8117e1c1be.tar.xz seaweedfs-csi-driver-c2ec139c1c34f7d6653b7094fdb97c8117e1c1be.zip | |
Merge pull request #59 from joy717/fix/required-bytes
Diffstat (limited to 'pkg/driver/nodeserver.go')
| -rw-r--r-- | pkg/driver/nodeserver.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/driver/nodeserver.go b/pkg/driver/nodeserver.go index 1f3ce20..6c6fa19 100644 --- a/pkg/driver/nodeserver.go +++ b/pkg/driver/nodeserver.go @@ -136,7 +136,8 @@ func (ns *NodeServer) NodeGetCapabilities(ctx context.Context, req *csi.NodeGetC Type: &csi.NodeServiceCapability_Rpc{ Rpc: &csi.NodeServiceCapability_RPC{ // Type: csi.NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME, - Type: csi.NodeServiceCapability_RPC_UNKNOWN, + //Type: csi.NodeServiceCapability_RPC_UNKNOWN, + Type: csi.NodeServiceCapability_RPC_EXPAND_VOLUME, }, }, }, @@ -181,11 +182,11 @@ func (ns *NodeServer) NodeExpandVolume(ctx context.Context, req *csi.NodeExpandV client := mount_pb.NewSeaweedMountClient(clientConn) _, err = client.Configure(context.Background(), &mount_pb.ConfigureRequest{ - CollectionCapacity: req.CapacityRange.LimitBytes, + CollectionCapacity: req.CapacityRange.RequiredBytes, }) return &csi.NodeExpandVolumeResponse{ - CapacityBytes: req.CapacityRange.LimitBytes, + CapacityBytes: req.CapacityRange.RequiredBytes, }, err } |
