Documentation ¶
Index ¶
- func SetupWithManager(mgr ctrl.Manager) error
- type CheckExecutor
- type CheckReconciler
- func (r *CheckReconciler) Deprovision(_ context.Context, _ *k8upv1.Check) (controllerruntime.Result, error)
- func (r *CheckReconciler) NewObject() *k8upv1.Check
- func (r *CheckReconciler) NewObjectList() *k8upv1.CheckList
- func (r *CheckReconciler) Provision(ctx context.Context, obj *k8upv1.Check) (controllerruntime.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupWithManager ¶
SetupWithManager configures the reconciler.
Types ¶
type CheckExecutor ¶
CheckExecutor will execute the batch.job for checks.
func NewCheckExecutor ¶
func NewCheckExecutor(config job.Config) *CheckExecutor
NewCheckExecutor will return a new executor for check jobs.
func (*CheckExecutor) Exclusive ¶
func (*CheckExecutor) Exclusive() bool
Exclusive should return true for jobs that can't run while other jobs run.
func (*CheckExecutor) Execute ¶
func (c *CheckExecutor) Execute(ctx context.Context) error
Execute creates the actual batch.job on the k8s api.
func (*CheckExecutor) GetConcurrencyLimit ¶
func (c *CheckExecutor) GetConcurrencyLimit() int
GetConcurrencyLimit returns the concurrent jobs limit
type CheckReconciler ¶
CheckReconciler reconciles a Check object
func (*CheckReconciler) Deprovision ¶
func (r *CheckReconciler) Deprovision(_ context.Context, _ *k8upv1.Check) (controllerruntime.Result, error)
func (*CheckReconciler) NewObject ¶
func (r *CheckReconciler) NewObject() *k8upv1.Check
func (*CheckReconciler) NewObjectList ¶
func (r *CheckReconciler) NewObjectList() *k8upv1.CheckList
func (*CheckReconciler) Provision ¶
func (r *CheckReconciler) Provision(ctx context.Context, obj *k8upv1.Check) (controllerruntime.Result, error)
Click to show internal directories.
Click to hide internal directories.