Skip to content

content: support filters on local.store#Walk()#4701

Merged
AkihiroSuda merged 1 commit intocontainerd:masterfrom
kzys:content-store-filter
Jan 25, 2021
Merged

content: support filters on local.store#Walk()#4701
AkihiroSuda merged 1 commit intocontainerd:masterfrom
kzys:content-store-filter

Conversation

@kzys
Copy link
Copy Markdown
Member

@kzys kzys commented Nov 7, 2020

While Walk() has been taking filter string, it was not using the parameter.
This change actually makes the filtering work.

Signed-off-by: Kazuyoshi Kato [email protected]

@k8s-ci-robot
Copy link
Copy Markdown

Hi @kzys. Thanks for your PR.

I'm waiting for a containerd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Comment thread metadata/adaptors.go Outdated
Copy link
Copy Markdown
Member Author

@kzys kzys Nov 7, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because metadata depends on local. I had to move this function from metadata.

Comment thread content/adaptor.go Outdated
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

metadata/adaptors.go has the same function sadly. Is there a better place to have functions that are used from multiple adaptors?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is pretty small function, could just embed it if its only used once in this package.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd like to keep this function as is rather than embedding.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Nov 7, 2020

Build succeeded.

@kzys kzys force-pushed the content-store-filter branch from ecae93c to b8862cd Compare November 10, 2020 19:41
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Nov 10, 2020

Build succeeded.

Comment thread content/adaptor.go Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exported functions require a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Added the doc comment.

While Walk() has been taking filter strings, it was not using the parameter.
This change actually makes the filtering work.

Signed-off-by: Kazuyoshi Kato <[email protected]>
@kzys kzys force-pushed the content-store-filter branch from b8862cd to e74ace9 Compare November 11, 2020 19:18
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Nov 11, 2020

Build succeeded.

Copy link
Copy Markdown
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AkihiroSuda AkihiroSuda merged commit 2034660 into containerd:master Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants