AzBuilder / terraform-provider-terrakube

Terraform provider for Terrakube
Apache License 2.0
4 stars 3 forks source link

Add Resource to manage schedules #65

Open ehuizar1028 opened 3 weeks ago

ehuizar1028 commented 3 weeks ago

We have a monorepo setup of many states in folders, we would like to dynamically create the VCS projects per folder, which is possible currently.

But we would also like to create a schedule for drift detection, which is not possible with the provider since theres no schedule resource.

alfespa17 commented 3 weeks ago

If anyone would like to help with this issue, this will require to implement the API called that is explained here.

https://docs.terrakube.io/api/methods/schedule

And the cron expression is using quartz notation as shown here.

https://freeformatter.com/cron-expression-generator-quartz.html

ehuizar1028 commented 3 weeks ago

i can possibly implement this if i can find time. We do need it if we are going to productionize terrakube in our environment, so I'll submit a PR if i get time to implement it

I am currently getting around this with a simple curl request using local-exec