mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
Come out of loop when RPC_STAGE_UNSTAGE_VOLUME is found
This commit is contained in:
@@ -737,6 +737,7 @@ func (c *csiDriverClient) nodeSupportsStageUnstageV1(ctx context.Context) (bool,
|
|||||||
for _, capability := range capabilities {
|
for _, capability := range capabilities {
|
||||||
if capability.GetRpc().GetType() == csipbv1.NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME {
|
if capability.GetRpc().GetType() == csipbv1.NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME {
|
||||||
stageUnstageSet = true
|
stageUnstageSet = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return stageUnstageSet, nil
|
return stageUnstageSet, nil
|
||||||
@@ -764,6 +765,7 @@ func (c *csiDriverClient) nodeSupportsStageUnstageV0(ctx context.Context) (bool,
|
|||||||
for _, capability := range capabilities {
|
for _, capability := range capabilities {
|
||||||
if capability.GetRpc().GetType() == csipbv0.NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME {
|
if capability.GetRpc().GetType() == csipbv0.NodeServiceCapability_RPC_STAGE_UNSTAGE_VOLUME {
|
||||||
stageUnstageSet = true
|
stageUnstageSet = true
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return stageUnstageSet, nil
|
return stageUnstageSet, nil
|
||||||
|
Reference in New Issue
Block a user