From b9c07dc7a17a3a4b755406f48b145557b4feaf89 Mon Sep 17 00:00:00 2001 From: andyzhangx Date: Mon, 11 Jun 2018 07:10:24 +0000 Subject: [PATCH] set EnableHTTPSTrafficOnly in storageAccount creation --- pkg/cloudprovider/providers/azure/azure_storageaccount.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/cloudprovider/providers/azure/azure_storageaccount.go b/pkg/cloudprovider/providers/azure/azure_storageaccount.go index 00944a8a44c..a53e34920e2 100644 --- a/pkg/cloudprovider/providers/azure/azure_storageaccount.go +++ b/pkg/cloudprovider/providers/azure/azure_storageaccount.go @@ -112,7 +112,8 @@ func (az *Cloud) ensureStorageAccount(accountName, accountType, location, genAcc glog.V(2).Infof("azure - no matching account found, begin to create a new account %s in resource group %s, location: %s, accountType: %s", accountName, az.ResourceGroup, location, accountType) cp := storage.AccountCreateParameters{ - Sku: &storage.Sku{Name: storage.SkuName(accountType)}, + Sku: &storage.Sku{Name: storage.SkuName(accountType)}, + AccountPropertiesCreateParameters: &storage.AccountPropertiesCreateParameters{EnableHTTPSTrafficOnly: to.BoolPtr(true)}, Tags: map[string]*string{"created-by": to.StringPtr("azure")}, Location: &location}