Skip to content

containerd integration: make sure images are sorted, and optimize before/since filters #43848

@thaJeztah

Description

@thaJeztah

Description

The previous implementation sorted the results by "created" (descending order);

sort.Sort(sort.Reverse(byCreated(summaries)))

We can either sort locally, or possibly optimize and have containerd return the result in sorted order.

When sorting the results, we can also optimize the before and since filters to break the loop if we're reaching a certain "created" date.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/imagesImage Distributionarea/performancecontainerd-integrationIssues and PRs related to containerd integrationkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions