From 7cc3808dae8c3c12224e4f42204e3d91358596fe Mon Sep 17 00:00:00 2001 From: Neville George Date: Fri, 17 May 2019 16:14:29 -0400 Subject: [PATCH] Fixing the output of jsonpath Items is an array and the [ ] are missing in the jsonpath --- content/en/docs/tasks/job/automated-tasks-with-cron-jobs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/tasks/job/automated-tasks-with-cron-jobs.md b/content/en/docs/tasks/job/automated-tasks-with-cron-jobs.md index 9180f7089d976..8ac406a2aa75a 100644 --- a/content/en/docs/tasks/job/automated-tasks-with-cron-jobs.md +++ b/content/en/docs/tasks/job/automated-tasks-with-cron-jobs.md @@ -114,7 +114,7 @@ The job name and pod name are different. ```shell # Replace "hello-4111706356" with the job name in your system -pods=$(kubectl get pods --selector=job-name=hello-4111706356 --output=jsonpath={.items.metadata.name}) +pods=$(kubectl get pods --selector=job-name=hello-4111706356 --output=jsonpath={.items[].metadata.name}) ``` Show pod log: