[ja] Fix inconsistent command in the JSONPath Support page

pull/42509/head
Arhell 2023-08-12 11:44:01 +03:00
parent a1e4da1d59
commit ee0465a4f8
1 changed files with 1 additions and 1 deletions

View File

@ -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 >}}