Skip to content

Commit 59171fa

Browse files
committed
Fix custom object API example
1 parent 96766c2 commit 59171fa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/custom_object.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ def main():
5353
"apiVersion": "stable.example.com/v1",
5454
"kind": "CronTab",
5555
"metadata": {"name": "my-new-cron-object"},
56-
"cronSpec": "* * * * */5",
57-
"image": "my-awesome-cron-image",
56+
"spec": {
57+
"cronSpec": "* * * * */5",
58+
"image": "my-awesome-cron-image"
59+
}
5860
}
5961

6062
# create the resource

0 commit comments

Comments
 (0)