From 41d5f445b29fdaea834813b0f825ae89f1325b63 Mon Sep 17 00:00:00 2001 From: Dr Nic Williams Date: Mon, 18 Nov 2019 11:27:41 +1000 Subject: [PATCH] jsonpath example of child with dot in name (#17625) Promoting the solution shown in https://github.com/kubernetes/kubernetes/issues/23386#issuecomment-305348170 to formal documentation. --- content/en/docs/reference/kubectl/jsonpath.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/reference/kubectl/jsonpath.md b/content/en/docs/reference/kubectl/jsonpath.md index f684a34dff..ffbe7103c8 100644 --- a/content/en/docs/reference/kubectl/jsonpath.md +++ b/content/en/docs/reference/kubectl/jsonpath.md @@ -69,7 +69,7 @@ Function | Description | Example --------------------|---------------------------|-----------------------------------------------------------------|------------------ `text` | the plain text | `kind is {.kind}` | `kind is List` `@` | the current object | `{@}` | the same as input -`.` or `[]` | child operator | `{.kind}` or `{['kind']}` | `List` +`.` or `[]` | child operator | `{.kind}`, `{['kind']}` or `{['name\.type']}` | `List` `..` | recursive descent | `{..name}` | `127.0.0.1 127.0.0.2 myself e2e` `*` | wildcard. Get all objects | `{.items[*].metadata.name}` | `[127.0.0.1 127.0.0.2]` `[start:end:step]` | subscript operator | `{.users[0].name}` | `myself`