Speed up binding of provisioned volumes
This fixes e2e test for provisioning - it expects that provisioned volumes are bound quickly. Majority of this patch is update of test framework needs to initialize the controller appropriately.
This commit is contained in:
@@ -128,8 +128,7 @@ func TestControllerSync(t *testing.T) {
|
||||
client := &fake.Clientset{}
|
||||
volumeSource := framework.NewFakeControllerSource()
|
||||
claimSource := framework.NewFakeControllerSource()
|
||||
ctrl := newPersistentVolumeController(client)
|
||||
ctrl.initializeController(time.Minute, volumeSource, claimSource)
|
||||
ctrl := newPersistentVolumeController(client, volumeSource, claimSource)
|
||||
reactor := newVolumeReactor(client, ctrl, volumeSource, claimSource, test.errors)
|
||||
for _, claim := range test.initialClaims {
|
||||
claimSource.Add(claim)
|
||||
|
Reference in New Issue
Block a user