mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Remove variable nodeExpandSet
This commit is contained in:
parent
565c88de14
commit
ebe499ec80
@ -681,17 +681,15 @@ func (c *csiDriverClient) NodeSupportsNodeExpand(ctx context.Context) (bool, err
|
||||
|
||||
capabilities := resp.GetCapabilities()
|
||||
|
||||
nodeExpandSet := false
|
||||
if capabilities == nil {
|
||||
return false, nil
|
||||
}
|
||||
for _, capability := range capabilities {
|
||||
if capability.GetRpc().GetType() == csipbv1.NodeServiceCapability_RPC_EXPAND_VOLUME {
|
||||
nodeExpandSet = true
|
||||
return true, nil
|
||||
}
|
||||
}
|
||||
return nodeExpandSet, nil
|
||||
return false, nil
|
||||
} else if c.nodeV0ClientCreator != nil {
|
||||
return false, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user