Skip to content

Commit

Permalink
Normalize share name to not include capital letters
Browse files Browse the repository at this point in the history
  • Loading branch information
kassarl committed Mar 26, 2021
1 parent b8c149c commit 8429b31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/driver/azurefile_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func InitAzureFileDriver() PVTestDriver {
// normalizeProvisioner extracts any '/' character in the provisioner name to '-'.
// StorageClass name cannot container '/' character.
func normalizeProvisioner(provisioner string) string {
return strings.ReplaceAll(provisioner, "/", "-")
return strings.ToLower(strings.ReplaceAll(provisioner, "/", "-"))
}

func (d *AzureFileDriver) GetDynamicProvisionStorageClass(parameters map[string]string, mountOptions []string, reclaimPolicy *v1.PersistentVolumeReclaimPolicy, bindingMode *storagev1.VolumeBindingMode, allowedTopologyValues []string, namespace string) *storagev1.StorageClass {
Expand Down

0 comments on commit 8429b31

Please # to comment.