checkcontroller

package
v2.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupWithManager

func SetupWithManager(mgr ctrl.Manager) error

SetupWithManager configures the reconciler.

Types

type CheckExecutor

type CheckExecutor struct {
	executor.Generic
	// contains filtered or unexported fields
}

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

type CheckReconciler struct {
	Kube client.Client
}

CheckReconciler reconciles a Check object

func (*CheckReconciler) Deprovision

func (*CheckReconciler) NewObject

func (r *CheckReconciler) NewObject() *k8upv1.Check

func (*CheckReconciler) NewObjectList

func (r *CheckReconciler) NewObjectList() *k8upv1.CheckList

func (*CheckReconciler) Provision

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL