Merge pull request #42509 from Arhell/ja-path

[ja] Fix inconsistent command in the JSONPath Support page
pull/42808/head
Kubernetes Prow Robot 2023-08-31 05:44:48 -07:00 committed by GitHub
commit 6df902a611
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 >}}