Skip to content

Commit

Permalink
Fixing the output of jsonpath (kubernetes#14387)
Browse files Browse the repository at this point in the history
Items is an array and the [ ] are missing in the jsonpath
  • Loading branch information
findneville authored and yoonian committed May 28, 2019
1 parent 3f150b7 commit 24e33a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down

0 comments on commit 24e33a2

Please sign in to comment.