We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 004c8d3 commit 2987c60Copy full SHA for 2987c60
content/en/docs/reference/kubectl/jsonpath.md
@@ -108,6 +108,6 @@ JSONPath regular expressions are not supported. If you want to match using regul
108
kubectl get pods -o jsonpath='{.items[?(@.metadata.name=~/^test$/)].metadata.name}'
109
110
# The following command achieves the desired result
111
-kubectl get pods -o json | jq -r '.items[] | select(.metadata.name | test("test-")).spec.containers[].image'
+kubectl get pods -o json | jq -r '.items[] | select(.metadata.name | test("test-")).metadata.name'
112
```
113
{{< /note >}}
0 commit comments