added toggle to disable dynamic provisioning

This commit is contained in:
markturansky
2016-06-09 11:39:34 -04:00
parent 530001c1fd
commit 16ec36c591
14 changed files with 127 additions and 57 deletions

View File

@@ -164,7 +164,7 @@ func TestControllerSync(t *testing.T) {
client := &fake.Clientset{}
volumeSource := framework.NewFakeControllerSource()
claimSource := framework.NewFakeControllerSource()
ctrl := newTestController(client, volumeSource, claimSource)
ctrl := newTestController(client, volumeSource, claimSource, true)
reactor := newVolumeReactor(client, ctrl, volumeSource, claimSource, test.errors)
for _, claim := range test.initialClaims {
claimSource.Add(claim)