Merge pull request #80935 from wongma7/initcsinode-error

Return error returned by CSINode Get if initialization failed
This commit is contained in:
Kubernetes Prow Robot 2019-08-06 23:57:29 -07:00 committed by GitHub
commit 07afde1559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,6 +417,8 @@ func (nim *nodeInfoManager) tryInitializeCSINodeWithAnnotation(csiKubeClient cli
// CreateCSINode will set the annotation
_, err = nim.CreateCSINode()
return err
} else if err != nil {
return err
}
annotationModified := setMigrationAnnotation(nim.migratedPlugins, nodeInfo)