mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
fix azure disk create failure due to sdk upgrade
This commit is contained in:
parent
ecc64f2e6e
commit
292226195b
@ -489,7 +489,9 @@ func (c *BlobDiskController) createStorageAccount(storageAccountName string, sto
|
|||||||
glog.V(2).Infof("azureDisk - Creating storage account %s type %s", storageAccountName, string(storageAccountType))
|
glog.V(2).Infof("azureDisk - Creating storage account %s type %s", storageAccountName, string(storageAccountType))
|
||||||
|
|
||||||
cp := storage.AccountCreateParameters{
|
cp := storage.AccountCreateParameters{
|
||||||
Sku: &storage.Sku{Name: storageAccountType},
|
Sku: &storage.Sku{Name: storageAccountType},
|
||||||
|
// switch to use StorageV2 as it's recommended according to https://docs.microsoft.com/en-us/azure/storage/common/storage-account-options
|
||||||
|
Kind: storage.StorageV2,
|
||||||
Tags: map[string]*string{"created-by": to.StringPtr("azure-dd")},
|
Tags: map[string]*string{"created-by": to.StringPtr("azure-dd")},
|
||||||
Location: &location}
|
Location: &location}
|
||||||
ctx, cancel := getContextWithCancel()
|
ctx, cancel := getContextWithCancel()
|
||||||
|
Loading…
Reference in New Issue
Block a user