From 5a4c534e5703c5b2016abafdbc021dd722cc9da8 Mon Sep 17 00:00:00 2001 From: Daniel Mendes Date: Wed, 26 Aug 2020 19:55:26 +0200 Subject: [PATCH] Update content/en/docs/reference/kubectl/jsonpath.md Co-authored-by: Tim Bannister --- content/en/docs/reference/kubectl/jsonpath.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/en/docs/reference/kubectl/jsonpath.md b/content/en/docs/reference/kubectl/jsonpath.md index acb9d9e9e9..cc4628a1c7 100644 --- a/content/en/docs/reference/kubectl/jsonpath.md +++ b/content/en/docs/reference/kubectl/jsonpath.md @@ -103,7 +103,7 @@ kubectl get pods -o=jsonpath="{range .items[*]}{.metadata.name}{\"\t\"}{.status. JSONPath regular expressions are not supported. If you want to match using regular expressions, you can use a tool such as `jq`. ```shell -# kubectl does not suport regular expressions +# kubectl does not support regular expressions for JSONpath output # The following command does not work kubectl get pods -o jsonpath='{.items[?(@.metadata.name=~/^test$/)].metadata.name}' @@ -111,4 +111,3 @@ kubectl get pods -o jsonpath='{.items[?(@.metadata.name=~/^test$/)].metadata.nam kubectl get pods -o json | jq -r '.items[] | select(.metadata.name | test("test-")).spec.containers[].image' ``` {{< /note >}} -