Skip to content

Commit 6df902a

Browse files
authored
Merge pull request #42509 from Arhell/ja-path
[ja] Fix inconsistent command in the JSONPath Support page
2 parents adb26b4 + ee0465a commit 6df902a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)