Remove the description of the old jsonpath ..image, Retain the explanation of the new jsonpath

pull/37064/head
Akanksha Kumari 2022-09-29 08:52:57 +05:30
parent eccb792c5e
commit f22034ad40
1 changed files with 5 additions and 2 deletions

View File

@ -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`,