mirror of https://github.com/k3s-io/k3s
return error if make dir failed when setting up azure file volume
parent
a94ea824eb
commit
867a717fb1
|
@ -269,7 +269,9 @@ func (b *azureFileMounter) SetUpAt(dir string, fsGroup *int64) error {
|
||||||
if runtime.GOOS == "windows" {
|
if runtime.GOOS == "windows" {
|
||||||
mountOptions = []string{fmt.Sprintf("AZURE\\%s", accountName), accountKey}
|
mountOptions = []string{fmt.Sprintf("AZURE\\%s", accountName), accountKey}
|
||||||
} else {
|
} else {
|
||||||
os.MkdirAll(dir, 0700)
|
if err := os.MkdirAll(dir, 0700); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
// parameters suggested by https://azure.microsoft.com/en-us/documentation/articles/storage-how-to-use-files-linux/
|
// parameters suggested by https://azure.microsoft.com/en-us/documentation/articles/storage-how-to-use-files-linux/
|
||||||
options := []string{fmt.Sprintf("username=%s,password=%s", accountName, accountKey)}
|
options := []string{fmt.Sprintf("username=%s,password=%s", accountName, accountKey)}
|
||||||
if b.readOnly {
|
if b.readOnly {
|
||||||
|
|
Loading…
Reference in New Issue