From 59171faa72c4f20b11867da15ad8b5cdcd1c9730 Mon Sep 17 00:00:00 2001 From: JP Balarini Date: Wed, 8 Jan 2020 17:53:34 -0300 Subject: [PATCH] Fix custom object API example --- examples/custom_object.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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