Add label! filter and tests to containers and pods

Thanks to Ed Santiago <santiago@redhat.com> for tests.

Signed-off-by: xtex <xtexchooser@duck.com>
This commit is contained in:
xtex
2023-09-11 19:53:55 +08:00
parent 51d01dd38e
commit 98e6dda697
5 changed files with 44 additions and 3 deletions

View File

@ -50,6 +50,7 @@ Valid filters are listed below:
| id | [ID] Container's ID (CID prefix match by default; accepts regex) |
| name | [Name] Container's name (accepts regex) |
| label | [Key] or [Key=Value] Label assigned to a container |
| label! | [Key] or [Key=Value] Label NOT assigned to a container |
| exited | [Int] Container's exit code |
| status | [Status] Container's status: 'created', 'exited', 'paused', 'running', 'unknown' |
| ancestor | [ImageName] Image or descendant used to create container (accepts regex) |