diff --git a/examples/custom_object.py b/examples/custom_object.py index 0c2b36aefb..55e359f5bf 100644 --- a/examples/custom_object.py +++ b/examples/custom_object.py @@ -53,8 +53,10 @@ def main(): "apiVersion": "stable.example.com/v1", "kind": "CronTab", "metadata": {"name": "my-new-cron-object"}, - "cronSpec": "* * * * */5", - "image": "my-awesome-cron-image", + "spec": { + "cronSpec": "* * * * */5", + "image": "my-awesome-cron-image" + } } # create the resource