Merge pull request #133933 from zhifei92/cleanup-duplicate-logs

Clean up duplicate logs
This commit is contained in:
Kubernetes Prow Robot 2025-09-08 14:05:43 -07:00 committed by GitHub
commit ddd8e70b1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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