fix: use sensitiveOptions on Windows mount

This commit is contained in:
andyzhangx 2020-08-20 07:28:26 +00:00
parent d20d894d72
commit 1b213c9053

View File

@ -287,7 +287,8 @@ func (b *azureFileMounter) SetUpAt(dir string, mounterArgs volume.MounterArgs) e
source = fmt.Sprintf("%s%s%s.file.%s%s%s", osSeparator, osSeparator, accountName, getStorageEndpointSuffix(b.plugin.host.GetCloudProvider()), osSeparator, b.shareName)
if runtime.GOOS == "windows" {
sensitiveMountOptions = []string{fmt.Sprintf("AZURE\\%s", accountName), accountKey}
mountOptions = []string{fmt.Sprintf("AZURE\\%s", accountName)}
sensitiveMountOptions = []string{accountKey}
} else {
if err := os.MkdirAll(dir, 0700); err != nil {
return err