• 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
mount_windows_test.go 3.87 KB