I want to create a custom controller that extends Cronjob

183 Views Asked by At

I'd like to create a custom controller for a Cronjob that doesn't generate jobs in certain situations.

Is there any way to easily create a custom controller that works almost exactly like a Cronjob?

1

There are 1 best solutions below

0
On

Not sure you can find easy way ... but start with How to write Kubernetes custom controllers in Go

In the official Kubernetes GitHub repository, you can find a controller example, sample-controller.

Controller structure diagram:

enter image description here