Provision interface change

This commit is contained in:
lichuqiang
2018-05-23 16:12:20 +08:00
parent dffbd75f86
commit bccc8fe979
33 changed files with 59 additions and 37 deletions

View File

@@ -180,7 +180,7 @@ type Provisioner interface {
// Provision creates the resource by allocating the underlying volume in a
// storage system. This method should block until completion and returns
// PersistentVolume representing the created storage resource.
Provision() (*v1.PersistentVolume, error)
Provision(selectedNode *v1.Node, allowedTopologies []v1.TopologySelectorTerm) (*v1.PersistentVolume, error)
}
// Deleter removes the resource from the underlying storage provider. Calls