FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: reject invalid network ls filters by immanuwell · Pull Request #5226 · containerd/nerdctl · GitHub

fix: reject invalid network ls filters - #5226

Open
immanuwell wants to merge 1 commit into
containerd:mainfrom
immanuwell:fix/network-ls-invalid-filters
Open

immanuwell wants to merge 1 commit into
containerd:mainfrom
immanuwell:fix/network-ls-invalid-filters

Conversation

immanuwell commented Sep 21, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

network ls --filter names=missing lists every configured network

This rejects unknown keys and filters without =, valid name and label filters still work

Repro with CNI plugins installed:

nerdctl network create repro-net
nerdctl network ls --filter names=missing

Before: lists repro-net. After: exits with invalid filter 'names'

Tested: make test-unit and golangci-lint run ./pkg/cmd/network/...

Signed-off-by: Immanuel Tikhonov <pchpr.00@list.ru>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL