1、fix command kubectl get crontab output
2、fix command kubectl get crontab -o json output
reviewable/pr3125/r1^2
chenhuan12 2017-03-30 15:17:15 +08:00 committed by Jared
parent a19701dea4
commit 6b02e280d8
1 changed files with 6 additions and 4 deletions

View File

@ -89,8 +89,8 @@ You can then manage our `CronTab` objects using kubectl. Note that resource name
```shell ```shell
$ kubectl get crontab $ kubectl get crontab
NAME LABELS DATA NAME KIND
my-new-cron-object <none> {"apiVersion":"stable.example.com/v1","cronSpec":"... my-new-cron-object CronTab.v1.stable.example.com
``` ```
You can also view the raw JSON data. Here you can see that it contains the custom `cronSpec` and `image` fields from the yaml you used to create it: You can also view the raw JSON data. Here you can see that it contains the custom `cronSpec` and `image` fields from the yaml you used to create it:
@ -98,9 +98,7 @@ You can also view the raw JSON data. Here you can see that it contains the custo
```yaml ```yaml
$ kubectl get crontab -o json $ kubectl get crontab -o json
{ {
"kind": "List",
"apiVersion": "v1", "apiVersion": "v1",
"metadata": {},
"items": [ "items": [
{ {
"apiVersion": "stable.example.com/v1", "apiVersion": "stable.example.com/v1",
@ -117,5 +115,9 @@ $ kubectl get crontab -o json
} }
} }
] ]
"kind": "List",
"metadata": {},
"resourceVersion": "",
"selfLink": ""
} }
``` ```