Completions Limit for ScheduledResource
Hello :wave:
This PR solves the following problem I want to create a resource every X time period but I only want to create Y of them
Also adds COMPLETIONS column to the printerColumns of the ScheduledResource CRD.
Concretely, I've added an optional integer field, completions to the ScheduledResource to limit the number of runs in case it's scheduled as a recurring job/cronjob. Currently it has a small validation that it can't be lower than 1 when it's set.
Example resource definition
Example kubectl outputs
Should be the same right after resource creation
After it creates a resource
completion times, Condition switches to Finished and Next Run is cleared
I will be testing and merging this PR soon, thanks for this feature!