Use default skuname shared Azure Disk

Shared blob disks are now created with default skuname value if the
referenced storage class possesses empty values for storageaccounttype
and skuname. Prior, the provisioning process would fail if a new
storage account needed to be created. This is because a storage account
may not be created with an empty sotrageaccounttype.
This commit is contained in:
rmweir 2019-07-31 18:26:35 -07:00
parent 59142b231c
commit e543f9b2fe

View File

@ -267,7 +267,7 @@ func (p *azureDiskProvisioner) Provision(selectedNode *v1.Node, allowedTopologie
return nil, err
}
} else {
diskURI, err = diskController.CreateBlobDisk(name, storage.SkuName(storageAccountType), requestGiB)
diskURI, err = diskController.CreateBlobDisk(name, storage.SkuName(skuName), requestGiB)
if err != nil {
return nil, err
}