Skip to content

Commit 565c88d

Browse files
tedyuyutedz
authored andcommitted
Return early when node expansion is determined
1 parent c88b7cd commit 565c88d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/volume/csi/csi_client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,6 +688,7 @@ func (c *csiDriverClient) NodeSupportsNodeExpand(ctx context.Context) (bool, err
688688
for _, capability := range capabilities {
689689
if capability.GetRpc().GetType() == csipbv1.NodeServiceCapability_RPC_EXPAND_VOLUME {
690690
nodeExpandSet = true
691+
return true, nil
691692
}
692693
}
693694
return nodeExpandSet, nil

0 commit comments

Comments
 (0)