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
cee320a8
Unverified
Commit
cee320a8
authored
Apr 18, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76534 from ping035627/k8s-190413
Expect directory permissions to be 0700
parents
1192ca09
e3dcd3c0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
postupgrade.go
cmd/kubeadm/app/phases/upgrade/postupgrade.go
+1
-1
No files found.
cmd/kubeadm/app/phases/upgrade/postupgrade.go
View file @
cee320a8
...
@@ -231,7 +231,7 @@ func GetKubeletDir(dryRun bool) (string, error) {
...
@@ -231,7 +231,7 @@ func GetKubeletDir(dryRun bool) (string, error) {
// backupAPIServerCertAndKey backups the old cert and key of kube-apiserver to a specified directory.
// backupAPIServerCertAndKey backups the old cert and key of kube-apiserver to a specified directory.
func
backupAPIServerCertAndKey
(
certAndKeyDir
string
)
error
{
func
backupAPIServerCertAndKey
(
certAndKeyDir
string
)
error
{
subDir
:=
filepath
.
Join
(
certAndKeyDir
,
"expired"
)
subDir
:=
filepath
.
Join
(
certAndKeyDir
,
"expired"
)
if
err
:=
os
.
Mkdir
(
subDir
,
07
66
);
err
!=
nil
{
if
err
:=
os
.
Mkdir
(
subDir
,
07
00
);
err
!=
nil
{
return
errors
.
Wrapf
(
err
,
"failed to created backup directory %s"
,
subDir
)
return
errors
.
Wrapf
(
err
,
"failed to created backup directory %s"
,
subDir
)
}
}
...
...
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