mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Jump out of spec translation early if the spec is not migratable. Unit tests work after all!
This commit is contained in:
parent
6e716af89e
commit
41c65f4740
@ -282,6 +282,10 @@ func translateInTreeSpecToCSIIfNeeded(spec *volume.Spec, nodeName types.NodeName
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if !migratable {
|
||||
// Jump out of translation fast so we don't check the node if the spec itself is not migratable
|
||||
return spec, nil
|
||||
}
|
||||
migrationSupportedOnNode, err := isCSIMigrationSupportedOnNode(nodeName, spec, vpm, csiMigratedPluginManager)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
Loading…
Reference in New Issue
Block a user