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 5a4c534 commit 691ca62Copy full SHA for 691ca62
content/en/docs/reference/kubectl/jsonpath.md
@@ -107,7 +107,7 @@ JSONPath regular expressions are not supported. If you want to match using regul
107
# The following command does not work
108
kubectl get pods -o jsonpath='{.items[?(@.metadata.name=~/^test$/)].metadata.name}'
109
110
-# The following command achieves the same result
+# The following command achieves the desired result
111
kubectl get pods -o json | jq -r '.items[] | select(.metadata.name | test("test-")).spec.containers[].image'
112
```
113
{{< /note >}}
0 commit comments