Skip to content

Commit 2987c60

Browse files
author
Mengjiao Liu
committed
Fix inconsistent command in the JSONPath Support page
1 parent 004c8d3 commit 2987c60

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
@@ -108,6 +108,6 @@ JSONPath regular expressions are not supported. If you want to match using regul
108108
kubectl get pods -o jsonpath='{.items[?(@.metadata.name=~/^test$/)].metadata.name}'
109109

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

0 commit comments

Comments
 (0)