Skip to content

feat: use stricter regex to filter network labels on the container. #4319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tushar5526
Copy link
Contributor

@tushar5526 tushar5526 commented Jun 13, 2025

This allows us to skip double-checking the network names on the container with an additional helper function.

Related to #4282

Network related labels on a Container are stored as follows:

"nerdctl/networks": "[\"net1\",\"net1-1\"]"

The new regex in this PR, exactly matches the network name, taking in account the \ and "

@tushar5526 tushar5526 force-pushed the use-stricter-regex-filter-match-network-labels branch 2 times, most recently from 2c2e68b to e03655b Compare June 13, 2025 21:17
This allows us to skip double checking the network names on the
container with an additional helper function.

Signed-off-by: Tushar Gupta <[email protected]>
@tushar5526 tushar5526 force-pushed the use-stricter-regex-filter-match-network-labels branch from e03655b to e5ab123 Compare June 13, 2025 21:21
@tushar5526
Copy link
Contributor Author

It does not look like the failing test is related to the changes made here. Are they flaky?

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.

1 participant