Skip to content

Commit 691ca62

Browse files
Update content/en/docs/reference/kubectl/jsonpath.md
Co-authored-by: Daniel Smith <[email protected]>
1 parent 5a4c534 commit 691ca62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/reference/kubectl/jsonpath.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ JSONPath regular expressions are not supported. If you want to match using regul
107107
# The following command does not work
108108
kubectl get pods -o jsonpath='{.items[?(@.metadata.name=~/^test$/)].metadata.name}'
109109

110-
# The following command achieves the same result
110+
# The following command achieves the desired result
111111
kubectl get pods -o json | jq -r '.items[] | select(.metadata.name | test("test-")).spec.containers[].image'
112112
```
113113
{{< /note >}}

0 commit comments

Comments
 (0)