mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #82974 from yutedz/csi-supp-stage
Come out of loop when RPC_STAGE_UNSTAGE_VOLUME is found
This commit is contained in:
commit
17b3e30c9b
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user