Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
9895e4e8
Unverified
Commit
9895e4e8
authored
Sep 29, 2018
by
k8s-ci-robot
Committed by
GitHub
Sep 29, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #69032 from mlmhl/azure_file_setup
return error if make dir failed when setting up azure file volume
parents
e019addc
867a717f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
azure_file.go
pkg/volume/azure_file/azure_file.go
+3
-1
No files found.
pkg/volume/azure_file/azure_file.go
View file @
9895e4e8
...
...
@@ -269,7 +269,9 @@ func (b *azureFileMounter) SetUpAt(dir string, fsGroup *int64) error {
if
runtime
.
GOOS
==
"windows"
{
mountOptions
=
[]
string
{
fmt
.
Sprintf
(
"AZURE
\\
%s"
,
accountName
),
accountKey
}
}
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/
options
:=
[]
string
{
fmt
.
Sprintf
(
"username=%s,password=%s"
,
accountName
,
accountKey
)}
if
b
.
readOnly
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment