Skip to content
New issue

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

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

Already on GitHub? # to your account

not working filter option of crictl inspect --image #1750

Open
unilinu opened this issue Jan 16, 2025 · 1 comment · May be fixed by #1752
Open

not working filter option of crictl inspect --image #1750

unilinu opened this issue Jan 16, 2025 · 1 comment · May be fixed by #1752
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node.

Comments

@unilinu
Copy link

unilinu commented Jan 16, 2025

What happened:

~ crictl inspect --image 5d81f1570472a |jq '.[].status.id'
"82d5effa89b5f4bf38e1ff4b693abb9562c63120bc4ebf3fa0b9391825c8bcd6"
"4c7f1e855630238526d4a2a21223eceaec7c6ef58f535cbc9f5ea5ff0626236d"
"5a109e7a720524952c606fa64d23d75825b625cb58bdbacc7e514d0ce1cb5437"
"c029009724377a7e130ebd8edb3325a5d5f503845054c0067c07ad2fa953062e"
"0fa0380cacf6d9910bd8c5354e4bcc1d2ebe0467176d05ac7a63c906d3b38108"
"f5e014bf082c26023207153697f66b2898420a5f8d9acf1ff2e8ae5bf1099ac5"
"f098cdc64876ac8be3eceda7114d54839bc08691fa9fee7529a7185f560aa70d"
"f5f315c6131cee7147c5f9a76c0e43f537d66e16df68ace43f3879285b9b13f0"~ crictl ps -q
82d5effa89b5f4bf38e1ff4b693abb9562c63120bc4ebf3fa0b9391825c8bcd6
4c7f1e855630238526d4a2a21223eceaec7c6ef58f535cbc9f5ea5ff0626236d
5a109e7a720524952c606fa64d23d75825b625cb58bdbacc7e514d0ce1cb5437
c029009724377a7e130ebd8edb3325a5d5f503845054c0067c07ad2fa953062e
0fa0380cacf6d9910bd8c5354e4bcc1d2ebe0467176d05ac7a63c906d3b38108
f5e014bf082c26023207153697f66b2898420a5f8d9acf1ff2e8ae5bf1099ac5
f098cdc64876ac8be3eceda7114d54839bc08691fa9fee7529a7185f560aa70d
f5f315c6131cee7147c5f9a76c0e43f537d66e16df68ace43f3879285b9b13f0
➜  ~ crictl ps --image 5d81f1570472a
CONTAINER           IMAGE               CREATED             STATE               NAME                ATTEMPT             POD ID              POD
82d5effa89b5f       5d81f1570472a       About an hour ago   Running             kube-flannel        0                   9023f9fd767c8       kube-flannel-ds-hxmzr

What you expected to happen:

crictl inspect --image 5d81f1570472a only show for container 82d5effa89b5f

Environment:

parallel desktop ubuntu22 vm on mac m1 pro

~ uname -a
Linux ubuntu 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:36 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux~ crictl -v
crictl version v1.31.1
➜  ~ crictl version
Version:  0.1.0
RuntimeName:  containerd
RuntimeVersion:  1.7.24
RuntimeApiVersion:  v1
@unilinu unilinu added kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node. labels Jan 16, 2025
@saschagrunert saschagrunert linked a pull request Jan 21, 2025 that will close this issue
@saschagrunert
Copy link
Member

Thank you for the report @unilinu, I'm working on a fix as part of #1752

@saschagrunert saschagrunert self-assigned this Jan 21, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants