Skip to content

Commit 0709b30

Browse files
authored
Merge pull request #28510 from chenxuc/28490
Correct command output in custom-resources example
2 parents 8c9e504 + c2d7782 commit 0709b30

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

content/en/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,22 +154,26 @@ from the YAML you used to create it:
154154

155155
```yaml
156156
apiVersion: v1
157-
kind: List
158157
items:
159158
- apiVersion: stable.example.com/v1
160159
kind: CronTab
161160
metadata:
162-
creationTimestamp: 2017-05-31T12:56:35Z
161+
annotations:
162+
kubectl.kubernetes.io/last-applied-configuration: |
163+
{"apiVersion":"stable.example.com/v1","kind":"CronTab","metadata":{"annotations":{},"name":"my-new-cron-object","namespace":"default"},"spec":{"cronSpec":"* * * * */5","image":"my-awesome-cron-image"}}
164+
creationTimestamp: "2021-06-20T07:35:27Z"
163165
generation: 1
164166
name: my-new-cron-object
165167
namespace: default
166-
resourceVersion: "285"
167-
uid: 9423255b-4600-11e7-af6a-28d2447dc82b
168+
resourceVersion: "1326"
169+
uid: 9aab1d66-628e-41bb-a422-57b8b3b1f5a9
168170
spec:
169171
cronSpec: '* * * * */5'
170172
image: my-awesome-cron-image
173+
kind: List
171174
metadata:
172175
resourceVersion: ""
176+
selfLink: ""
173177
```
174178
175179
## Delete a CustomResourceDefinition

0 commit comments

Comments
 (0)