Skip to content

Commit

Permalink
[ja] Fix inconsistent command in the JSONPath Support page
Browse files Browse the repository at this point in the history
  • Loading branch information
Arhell committed Aug 12, 2023
1 parent a1e4da1 commit ee0465a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/ja/docs/reference/kubectl/jsonpath.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,6 @@ JSONPathの正規表現はサポートされていません。正規表現を利
kubectl get pods -o jsonpath='{.items[?(@.metadata.name=~/^test$/)].metadata.name}'

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

0 comments on commit ee0465a

Please sign in to comment.