From f22034ad40b894baa8e805b072ee3004847df4ab Mon Sep 17 00:00:00 2001 From: Akanksha Kumari Date: Thu, 29 Sep 2022 08:52:57 +0530 Subject: [PATCH] Remove the description of the old jsonpath ..image, Retain the explanation of the new jsonpath --- .../list-all-running-container-images.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/en/docs/tasks/access-application-cluster/list-all-running-container-images.md b/content/en/docs/tasks/access-application-cluster/list-all-running-container-images.md index f0c5c2943f..96f74a0ffc 100644 --- a/content/en/docs/tasks/access-application-cluster/list-all-running-container-images.md +++ b/content/en/docs/tasks/access-application-cluster/list-all-running-container-images.md @@ -38,9 +38,12 @@ tr -s '[[:space:]]' '\n' |\ sort |\ uniq -c ``` +The jsonpath is interpreted as follows: -The above command will recursively return all fields named `image` -for all items returned. +- `.items[*]`: for each returned value +- `.spec`: get the spec +- `.containers[*]`: for each container +- `.image`: get the image {{< note >}} When fetching a single Pod by name, for example `kubectl get pod nginx`,