client
client copied to clipboard
extend batch.v1.CronJob with generateJob function
There is a need to be able to trigger Cronjobs outside of the normal cron. This PR adds that functionality as an extension to batch.v1.CronJob
@thomashorrobin nice idea. However, maybe it is better suited as an extension to SwiftkubeModel? I'll take a look and report back here 😉
Cool, okay I'll move it to there. I initially wanted to have it set up like that but I was unsure how the modelgen project worked in relation to SwiftkubeModel, so I was unsure how to fit it in with that workflow.
I also couldn't get the modelgen project to work, I received this error:
Regards, I will put it in an extension folder in SwiftkubeModel, add some tests, and submit a PR. Obviously feel free to move it around if you need 👍
@thomashorrobin Nice, thx!
About modelgen
: you have to specify the directory, where the templates reside, e.g.
swiftkube-modelgen --api-version v1.23.11 --templates templates/model --output <path for generated model>