mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
Merge pull request #133933 from zhifei92/cleanup-duplicate-logs
Clean up duplicate logs
This commit is contained in:
commit
ddd8e70b1e
1 changed files with 0 additions and 1 deletions
|
|
@ -393,7 +393,6 @@ func (im *realImageGCManager) GarbageCollect(ctx context.Context, beganGC time.T
|
|||
amountToFree := capacity*int64(100-im.policy.LowThresholdPercent)/100 - available
|
||||
logger.Info("Disk usage on image filesystem is over the high threshold, trying to free bytes down to the low threshold", "usage", usagePercent, "highThreshold", im.policy.HighThresholdPercent, "amountToFree", amountToFree, "lowThreshold", im.policy.LowThresholdPercent)
|
||||
remainingImages, freed, err := im.freeSpace(ctx, amountToFree, freeTime, images)
|
||||
logger.Info("Disk usage on image filesystem is over the high threshold, trying to free bytes down to the low threshold", "usage", usagePercent, "highThreshold", im.policy.HighThresholdPercent, "amountToFree", amountToFree, "lowThreshold", im.policy.LowThresholdPercent)
|
||||
if err != nil {
|
||||
// Failed to delete images, eg due to a read-only filesystem.
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue