Azure: reduce client polling interval from default 60s to 5s

Signed-off-by: Steve Kriss <steve@heptio.com>
pull/359/head
Steve Kriss 2018-03-06 14:00:10 -08:00
parent 973f630cc7
commit 45cee7d222
1 changed files with 3 additions and 0 deletions

View File

@ -102,6 +102,9 @@ func (b *blockStore) Init(config map[string]string) error {
disksClient := disk.NewDisksClient(cfg[azureSubscriptionIDKey])
snapsClient := disk.NewSnapshotsClient(cfg[azureSubscriptionIDKey])
disksClient.PollingDelay = 5 * time.Second
snapsClient.PollingDelay = 5 * time.Second
authorizer := autorest.NewBearerAuthorizer(spt)
disksClient.Authorizer = authorizer
snapsClient.Authorizer = authorizer