Documentation
¶
Index ¶
- func FilterJobs(items []execution.Job, filterFunc FilterFunc) []execution.Job
- func IsJobConfigStatusEqual(orig, updated *execution.JobConfig) (bool, error)
- func ToJobReferences(items []execution.Job) []execution.JobReference
- type Context
- type Controller
- type Factory
- type FilterFunc
- type InformerWorker
- type Reconciler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterJobs ¶
func FilterJobs(items []execution.Job, filterFunc FilterFunc) []execution.Job
FilterJobs filters a list of Job.
func IsJobConfigStatusEqual ¶
IsJobConfigStatusEqual returns true if the JobConfigStatus is not equal for a JobConfig.
func ToJobReferences ¶
func ToJobReferences(items []execution.Job) []execution.JobReference
ToJobReferences converts a list of Job to a list of JobReference.
Types ¶
type Context ¶
type Context struct { controllercontext.ContextInterface // contains filtered or unexported fields }
Context extends the common controllercontext.Context.
func NewContext ¶
func NewContext(context controllercontext.ContextInterface) *Context
type Controller ¶
type Controller struct { *Context // contains filtered or unexported fields }
Controller is responsible for reconciling the status of JobConfigs from their downstream Jobs.
func NewController ¶
func NewController( ctrlContext controllercontext.ContextInterface, concurrency *configv1.Concurrency, ) (*Controller, error)
func (*Controller) GetHealth ¶
func (c *Controller) GetHealth() controllermanager.HealthStatus
func (*Controller) Shutdown ¶
func (c *Controller) Shutdown(ctx context.Context)
type Factory ¶
type Factory struct{}
func NewFactory ¶
func NewFactory() *Factory
func (*Factory) New ¶
func (f *Factory) New( ctrlContext controllercontext.ContextInterface, concurrencySpec *v1.ExecutionControllerConcurrencySpec, ) (controllermanager.Controller, error)
type FilterFunc ¶
type InformerWorker ¶
type InformerWorker struct {
*Context
}
InformerWorker receives events from the informer and enqueues work to be done for the controller.
func NewInformerWorker ¶
func NewInformerWorker(ctrlContext *Context) *InformerWorker
func (*InformerWorker) WorkerName ¶
func (w *InformerWorker) WorkerName() string
type Reconciler ¶
type Reconciler struct { *Context // contains filtered or unexported fields }
func NewReconciler ¶
func NewReconciler(ctrlContext *Context, concurrency *configv1.Concurrency) *Reconciler
func (*Reconciler) Concurrency ¶
func (w *Reconciler) Concurrency() int
func (*Reconciler) MaxRequeues ¶
func (w *Reconciler) MaxRequeues() int
func (*Reconciler) Name ¶
func (w *Reconciler) Name() string
Click to show internal directories.
Click to hide internal directories.