From 5286869440706ff178f75c270635be369fae87fe Mon Sep 17 00:00:00 2001 From: Anthony Chu Date: Tue, 12 Jun 2018 05:42:43 +0800 Subject: [PATCH] Fix Azure File secret names to match k8s azureFile volume secrets (#224) https://docs.microsoft.com/en-us/azure/aks/azure-files-volume#create-kubernetes-secret --- providers/azure/aci.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/azure/aci.go b/providers/azure/aci.go index 6e1e8d03e..6bdf5d55a 100644 --- a/providers/azure/aci.go +++ b/providers/azure/aci.go @@ -630,8 +630,8 @@ func (p *ACIProvider) getVolumes(pod *v1.Pod) ([]aci.Volume, error) { AzureFile: &aci.AzureFileVolume{ ShareName: v.AzureFile.ShareName, ReadOnly: v.AzureFile.ReadOnly, - StorageAccountName: string(secret.Data["StorageAccountName"]), - StorageAccountKey: string(secret.Data["StorageAccountKey"]), + StorageAccountName: string(secret.Data["azurestorageaccountname"]), + StorageAccountKey: string(secret.Data["azurestorageaccountkey"]), }, }) continue