mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 12:15:52 +00:00
Return error returned by CSINode Get if initialization failed
This commit is contained in:
parent
5993ec5a5a
commit
bd42e728a8
@ -417,6 +417,8 @@ func (nim *nodeInfoManager) tryInitializeCSINodeWithAnnotation(csiKubeClient cli
|
|||||||
// CreateCSINode will set the annotation
|
// CreateCSINode will set the annotation
|
||||||
_, err = nim.CreateCSINode()
|
_, err = nim.CreateCSINode()
|
||||||
return err
|
return err
|
||||||
|
} else if err != nil {
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
annotationModified := setMigrationAnnotation(nim.migratedPlugins, nodeInfo)
|
annotationModified := setMigrationAnnotation(nim.migratedPlugins, nodeInfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user