mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-08 16:30:57 -04:00
Update pkg/volume/azure_file/azure_provision.go
Co-authored-by: Shiming Zhang <wzshiming@foxmail.com>
This commit is contained in:
parent
1c130f553c
commit
5a5fb3e289
1 changed files with 3 additions and 2 deletions
|
|
@ -200,8 +200,9 @@ func (a *azureFileProvisioner) Provision(selectedNode *v1.Node, allowedTopologie
|
|||
if shareName == "" {
|
||||
// File share name has a length limit of 63, it cannot contain two consecutive '-'s, and all letters must be lower case.
|
||||
name := util.GenerateVolumeName(a.options.ClusterName, a.options.PVName, 63)
|
||||
shareName = strings.ToLower(strings.Replace(name, "--", "-", -1))
|
||||
}
|
||||
shareName = strings.Replace(name, "--", "-", -1)
|
||||
shareName = strings.ToLower(shareName)
|
||||
}
|
||||
|
||||
if resourceGroup == "" {
|
||||
resourceGroup = a.options.PVC.ObjectMeta.Annotations[resourceGroupAnnotation]
|
||||
|
|
|
|||
Loading…
Reference in a new issue