Skip to content

Commit 82475c3

Browse files
authored
Merge pull request kubernetes#94126 from andyzhangx/windows-azurefile-mountoptions
fix: use sensitiveOptions on Windows mount
2 parents 6e7086d + 1b213c9 commit 82475c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/volume/azure_file/azure_file.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ func (b *azureFileMounter) SetUpAt(dir string, mounterArgs volume.MounterArgs) e
287287
source = fmt.Sprintf("%s%s%s.file.%s%s%s", osSeparator, osSeparator, accountName, getStorageEndpointSuffix(b.plugin.host.GetCloudProvider()), osSeparator, b.shareName)
288288

289289
if runtime.GOOS == "windows" {
290-
sensitiveMountOptions = []string{fmt.Sprintf("AZURE\\%s", accountName), accountKey}
290+
mountOptions = []string{fmt.Sprintf("AZURE\\%s", accountName)}
291+
sensitiveMountOptions = []string{accountKey}
291292
} else {
292293
if err := os.MkdirAll(dir, 0700); err != nil {
293294
return err

0 commit comments

Comments
 (0)