spiegel_podman/cmd
Garv Changrani d2b8502869 ps: fix label lookup in container and pod table headings
Table headings for `podman ps` and `podman pod ps` use a plain
`map[string]string`. A table template that calls `.Label` with an
argument fails while rendering the headings, before listing rows
are printed. For example: `podman ps --format 'table {{.Label "app"}}'`

Add a shared `PsHeader` type in `cmd/podman/common` with a `Label`
method that returns the requested label name as the column heading.
Use this type for both container and pod listings.

Add container unit tests and extend the existing container and pod
e2e tests to check label headings, label values, missing labels,
unlabeled objects, and `--noheading` output.

Fixes: #29831

Signed-off-by: Garv  Changrani <154041471+Garvity@users.noreply.github.com>
2026-09-29 11:29:57 +00:00
..
podman ps: fix label lookup in container and pod table headings 2026-09-29 11:29:57 +00:00
podman-mac-helper Merge pull request #29511 from vishnukothakapu/perf-regexp-mustcompile 2026-08-17 12:53:04 +02:00
podman-testing run modernize -fix ./... 2026-09-04 11:53:04 +02:00
quadlet quadlet: search target directory of symlinked unit files for drop-ins 2026-09-24 19:17:48 +05:30
rootlessport cmd/rootlessport: remove wsl workaround 2026-08-20 12:36:52 +02:00
winpath Fix GOOS=windows prealloc linter warnings 2026-02-11 11:41:11 -08:00