• Kubernetes Submit Queue's avatar
    Merge pull request #53629 from andyzhangx/azurefile-improve · 618b705a
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 46341, 53629). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    fix azure file mount limit issue on windows due to using drive letter
    
    **What this PR does / why we need it**:
    It's not necessary to use drive letter in azure file mount, correct usage for New-SmbGlobalMapping is like following:
    ```
    New-SmbGlobalMapping -RemotePath $AzureFilePath -Credential $Credential
    mklink /D $mountPath $AzureFilePath 
    ```
    I removed the `LocalPath` parameter in New-SmbGlobalMapping
    
    **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #54668
    Without this PR, there is a limit(25) for azure file mount number on each node because only 25 drive letters could be used on each windows node, With this PR, there would be no such limit.
    
    **Special notes for your reviewer**:
    @PatrickLang 
    
    **Release note**:
    
    ```
    fix azure file mount limit issue on windows due to using drive letter
    ```
    /sig azure
    /sig windows
    618b705a
Name
Last commit
Last update
..
BUILD Loading commit data...
OWNERS Loading commit data...
doc.go Loading commit data...
exec.go Loading commit data...
fake.go Loading commit data...
mount.go Loading commit data...
mount_linux.go Loading commit data...
mount_linux_test.go Loading commit data...
mount_unsupported.go Loading commit data...
mount_windows.go Loading commit data...
mount_windows_test.go Loading commit data...
nsenter_mount.go Loading commit data...
nsenter_mount_test.go Loading commit data...
nsenter_mount_unsupported.go Loading commit data...
safe_format_and_mount_test.go Loading commit data...