mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
fix azure storage account creation failure
fix comments
This commit is contained in:
parent
9899d37b59
commit
b76a3a1ce8
@ -113,6 +113,8 @@ func (az *Cloud) ensureStorageAccount(accountName, accountType, location, genAcc
|
|||||||
accountName, az.ResourceGroup, location, accountType)
|
accountName, az.ResourceGroup, location, accountType)
|
||||||
cp := storage.AccountCreateParameters{
|
cp := storage.AccountCreateParameters{
|
||||||
Sku: &storage.Sku{Name: storage.SkuName(accountType)},
|
Sku: &storage.Sku{Name: storage.SkuName(accountType)},
|
||||||
|
// 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,
|
||||||
AccountPropertiesCreateParameters: &storage.AccountPropertiesCreateParameters{EnableHTTPSTrafficOnly: to.BoolPtr(true)},
|
AccountPropertiesCreateParameters: &storage.AccountPropertiesCreateParameters{EnableHTTPSTrafficOnly: to.BoolPtr(true)},
|
||||||
Tags: map[string]*string{"created-by": to.StringPtr("azure")},
|
Tags: map[string]*string{"created-by": to.StringPtr("azure")},
|
||||||
Location: &location}
|
Location: &location}
|
||||||
|
Loading…
Reference in New Issue
Block a user