mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
fix freespace for image GC
This commit is contained in:
parent
5d144152e4
commit
9f37b5fe52
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user