mirror of https://github.com/k3s-io/k3s
Return early when node expansion is determined
parent
c88b7cdd58
commit
565c88de14
|
@ -688,6 +688,7 @@ func (c *csiDriverClient) NodeSupportsNodeExpand(ctx context.Context) (bool, err
|
||||||
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
|
nodeExpandSet = true
|
||||||
|
return true, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nodeExpandSet, nil
|
return nodeExpandSet, nil
|
||||||
|
|
Loading…
Reference in New Issue