Skip to content

feat: allow regexp name filters to match docker - #4326

Merged
AkihiroSuda merged 2 commits into
containerd:mainfrom
jedevc:name-filter-regexp
Jun 20, 2025
Merged

AkihiroSuda merged 2 commits into
containerd:mainfrom
jedevc:name-filter-regexp

Conversation

@jedevc

@jedevc jedevc commented Jun 19, 2025

Copy link
Copy Markdown
Contributor

Fixes #4323.

@@ -304,6 +304,42 @@ func TestContainerListWithFilter(t *testing.T) {
return nil
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe break down TestContainerListWithFilter into multiple different test functions (this one really feels like a mouthful now).
Alternatively, just bump up cognitive-complexity in golangci.yml.

Tip: call make lint to have the linter run locally if you didn't know that.

@apostasie

apostasie commented Jun 19, 2025 •

Copy link
Copy Markdown
Contributor

@jedevc nice!

Windows failure may be just a fluke (hcsshim is not exactly a parangon of stability...) - let see what happens when it re-runs.

Otherwise, LGTM (pending lint fix).

Signed-off-by: Justin Chadwell <[email protected]>
@jedevc
jedevc marked this pull request as ready for review June 20, 2025 10:44
@apostasie

Copy link
Copy Markdown
Contributor

CI failure is unrelated (#4237).

@AkihiroSuda @Shubhranshu153 @fahedouch for maintainers review.

@AkihiroSuda AkihiroSuda added this to the v2.1.3 milestone Jun 20, 2025

@AkihiroSuda AkihiroSuda left a comment

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.

Thanks

@AkihiroSuda
AkihiroSuda merged commit 36f9236 into containerd:main Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for regexp in --filter name=<value>

4 participants