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
9f37b5fe
Commit
9f37b5fe
authored
Feb 23, 2018
by
Pingan2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix freespace for image GC
parent
5d144152
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
image_gc_manager.go
pkg/kubelet/images/image_gc_manager.go
+1
-1
No files found.
pkg/kubelet/images/image_gc_manager.go
View file @
9f37b5fe
...
@@ -351,7 +351,7 @@ func (im *realImageGCManager) freeSpace(bytesToFree int64, freeTime time.Time) (
...
@@ -351,7 +351,7 @@ func (im *realImageGCManager) freeSpace(bytesToFree int64, freeTime time.Time) (
// Images that are currently in used were given a newer lastUsed.
// Images that are currently in used were given a newer lastUsed.
if
image
.
lastUsed
.
Equal
(
freeTime
)
||
image
.
lastUsed
.
After
(
freeTime
)
{
if
image
.
lastUsed
.
Equal
(
freeTime
)
||
image
.
lastUsed
.
After
(
freeTime
)
{
glog
.
V
(
5
)
.
Infof
(
"Image ID %s has lastUsed=%v which is >= freeTime=%v, not eligible for garbage collection"
,
image
.
id
,
image
.
lastUsed
,
freeTime
)
glog
.
V
(
5
)
.
Infof
(
"Image ID %s has lastUsed=%v which is >= freeTime=%v, not eligible for garbage collection"
,
image
.
id
,
image
.
lastUsed
,
freeTime
)
break
continue
}
}
// Avoid garbage collect the image if the image is not old enough.
// Avoid garbage collect the image if the image is not old enough.
...
...
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