Skip to content

Commit ee0465a

Browse files
committed
[ja] Fix inconsistent command in the JSONPath Support page
1 parent a1e4da1 commit ee0465a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,6 @@ JSONPathの正規表現はサポートされていません。正規表現を利
107107
kubectl get pods -o jsonpath='{.items[?(@.metadata.name=~/^test$/)].metadata.name}'
108108

109109
# 上のコマンドに期待される結果が欲しい場合、以下のコマンドを使うとよい
110-
kubectl get pods -o json | jq -r '.items[] | select(.metadata.name | test("test-")).spec.containers[].image'
110+
kubectl get pods -o json | jq -r '.items[] | select(.metadata.name | test("test-")).metadata.name'
111111
```
112112
{{< /note >}}

0 commit comments

Comments
 (0)