Skip to content

Commit

Permalink
Fixing the output of jsonpath (#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 k8s-ci-robot committed May 20, 2019
1 parent df4ef9b commit e2f8ae0
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 e2f8ae0

Please sign in to comment.