spiegel_podman/cmd
Aftab Ali ff12dabebb events: add missing NETWORK filter to generateEventFilter
podman events --filter network=<name> was unconditionally returning
'NETWORK is an invalid filter' because the NETWORK case was absent
from the generateEventFilter switch statement in filters.go.

All other first-class event types (container, image, pod, volume)
had corresponding filter cases, but the Network type - despite being
fully defined in config.go along with NetworkConnect/NetworkDisconnect
statuses and the Event.Network field - had no handler.

Add the NETWORK case to filter by network name (e.Network), consistent
with Docker's --filter network= behaviour.  ID-prefix matching is
intentionally omitted: for network connect/disconnect events e.ID
holds the container ID, not the network ID, so prefix matching would
only work for create/remove events and silently miss join/leave events.

Also add unit tests (filters_test.go), integration tests
(test/e2e/events_test.go, test/system/090-events.bats), shell
completion support for --filter network= (completion.go), and
document the new filter key in the man page.

Fixes: https://github.com/podman-container-tools/podman/issues/29387
Signed-off-by: Aftab Ali <aftab123215@gmail.com>
2026-09-11 14:31:30 +05:30
..
podman events: add missing NETWORK filter to generateEventFilter 2026-09-11 14:31:30 +05:30
podman-mac-helper Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
podman-testing Fix staticcheck SA4023 warnings in call.go and sign.go 2026-06-12 09:53:20 +02:00
podman-wslkerninst RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
quadlet Merge pull request #29079 from mvanhorn/fix-quadlet-verify-stderr-logging 2026-07-16 14:38:39 +02:00
rootlessport Clean up outdated slirp4netns references in comments 2026-04-13 09:05:09 -04:00
winpath Fix GOOS=windows prealloc linter warnings 2026-02-11 11:41:11 -08:00