mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
remove time waiting after create storage account
This commit is contained in:
parent
c933067cd3
commit
2afba1e40b
@ -542,14 +542,6 @@ func (c *BlobDiskController) createStorageAccount(storageAccountName string, sto
|
|||||||
c.addAccountState(storageAccountName, newAccountState)
|
c.addAccountState(storageAccountName, newAccountState)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !bExist {
|
|
||||||
// SA Accounts takes time to be provisioned
|
|
||||||
// so if this account was just created allow it sometime
|
|
||||||
// before polling
|
|
||||||
glog.V(2).Infof("azureDisk - storage account %s was just created, allowing time before polling status", storageAccountName)
|
|
||||||
time.Sleep(25 * time.Second) // as observed 25 is the average time for SA to be provisioned
|
|
||||||
}
|
|
||||||
|
|
||||||
// finally, make sure that we default container is created
|
// finally, make sure that we default container is created
|
||||||
// before handing it back over
|
// before handing it back over
|
||||||
return c.ensureDefaultContainer(storageAccountName)
|
return c.ensureDefaultContainer(storageAccountName)
|
||||||
|
Loading…
Reference in New Issue
Block a user