mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +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()
|
capabilities := resp.GetCapabilities()
|
||||||
|
|
||||||
nodeExpandSet := false
|
|
||||||
if capabilities == nil {
|
if capabilities == nil {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
for _, capability := range capabilities {
|
for _, capability := range capabilities {
|
||||||
if capability.GetRpc().GetType() == csipbv1.NodeServiceCapability_RPC_EXPAND_VOLUME {
|
if capability.GetRpc().GetType() == csipbv1.NodeServiceCapability_RPC_EXPAND_VOLUME {
|
||||||
nodeExpandSet = true
|
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nodeExpandSet, nil
|
return false, nil
|
||||||
} else if c.nodeV0ClientCreator != nil {
|
} else if c.nodeV0ClientCreator != nil {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user