Documentation
¶
Overview ¶
Package cronjob contains the controller for CronJob objects.
Index ¶
Constants ¶
View Source
const MaxConcurrency = 30
MaxConcurrency used to prevent the high load of onex-apiserver caused by excessive concurrency, it is necessary to limit the miner create/delete concurrency.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { // WatchFilterValue is the label value used to filter events prior to reconciliation. WatchFilterValue string // contains filtered or unexported fields }
Reconciler reconciles a CronJob object.
func (*Reconciler) JobToCronJobs ¶
JobToCronJobs is a handler.ToRequestsFunc to be used to enqueue rquests for reconciliation for CronJobs that might adopt an orphaned Miner.
func (*Reconciler) Reconcile ¶
Reconcile reads that state of the OneX for a CronJob object and makes changes based on the state read and what is in the CronJob.Spec.
func (*Reconciler) SetupWithManager ¶
func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager, options controller.Options) error
Click to show internal directories.
Click to hide internal directories.