-
Notifications
You must be signed in to change notification settings - Fork 14.8k
List All Container Images Running in a Cluster #27475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@BahmaniAlireza: This issue is currently awaiting triage. SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What's the URL of the page where you've seen a problem? |
here are the links to the:
|
The issue is, the following command produces 2 times (the count of image in a single pod). As @BahmaniAlireza mentioned, it is because the command count both the occurrence from the
Ideally it should be:
|
Following could be one of the fix for it:
|
/assign |
@Priyankasaggu11929 There are other references as well. These would return duplicate images as well, right? I've updated those as well for now. kubectl get pods --namespace kube-system -o jsonpath="{..image}" |
Hi @ms-choudhary, yes, I feel those also need to be fixed. Let's wait for @sftim to provide their review. :) |
Hi,
I've tested this example :
It returns image names double, because "{..image}" recursively search in the output of JSON, So at the first, it will find the "image" word in "spec.containers.image" and at the second time, it will find the "image" word in "containerStatuses.image".
It means you will see the image name two times for each pod at least.
Please change your example.
Best Regards,
Alireza Bahmani.
The text was updated successfully, but these errors were encountered: