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
185f02dd
Commit
185f02dd
authored
Apr 15, 2019
by
Ted Yu
Committed by
Ted Yu
Apr 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup as many dirs as possible in CleanupDirs
Signed-off-by:
Ted Yu
<
yute@vmware.com
>
parent
8c4651cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
staticpods.go
cmd/kubeadm/app/phases/upgrade/staticpods.go
+5
-4
No files found.
cmd/kubeadm/app/phases/upgrade/staticpods.go
View file @
185f02dd
...
...
@@ -147,22 +147,23 @@ func (spm *KubeStaticPodPathManager) BackupEtcdDir() string {
// CleanupDirs cleans up all temporary directories except those the user has requested to keep around
func
(
spm
*
KubeStaticPodPathManager
)
CleanupDirs
()
error
{
var
errlist
[]
error
if
err
:=
os
.
RemoveAll
(
spm
.
TempManifestDir
());
err
!=
nil
{
return
err
errlist
=
append
(
errlist
,
err
)
}
if
!
spm
.
keepManifestDir
{
if
err
:=
os
.
RemoveAll
(
spm
.
BackupManifestDir
());
err
!=
nil
{
return
err
errlist
=
append
(
errlist
,
err
)
}
}
if
!
spm
.
keepEtcdDir
{
if
err
:=
os
.
RemoveAll
(
spm
.
BackupEtcdDir
());
err
!=
nil
{
return
err
errlist
=
append
(
errlist
,
err
)
}
}
return
nil
return
utilerrors
.
NewAggregate
(
errlist
)
}
func
upgradeComponent
(
component
string
,
waiter
apiclient
.
Waiter
,
pathMgr
StaticPodPathManager
,
cfg
*
kubeadmapi
.
InitConfiguration
,
beforePodHash
string
,
recoverManifests
map
[
string
]
string
)
error
{
...
...
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