controllers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceAccountName = "korifi-task"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusGetter

type StatusGetter struct {
	// contains filtered or unexported fields
}

func NewStatusGetter

func NewStatusGetter(logger logr.Logger, k8sClient client.Client) *StatusGetter

func (*StatusGetter) GetStatusConditions

func (s *StatusGetter) GetStatusConditions(ctx context.Context, job *batchv1.Job) ([]metav1.Condition, error)

type TaskStatusGetter

type TaskStatusGetter interface {
	GetStatusConditions(ctx context.Context, job *batchv1.Job) ([]metav1.Condition, error)
}

type TaskWorkloadReconciler

type TaskWorkloadReconciler struct {
	// contains filtered or unexported fields
}

TaskWorkloadReconciler reconciles a TaskWorkload object

func NewTaskWorkloadReconciler

func NewTaskWorkloadReconciler(logger logr.Logger, k8sClient client.Client, scheme *runtime.Scheme, statusGetter TaskStatusGetter, jobTTL time.Duration) *TaskWorkloadReconciler

func (*TaskWorkloadReconciler) Reconcile

func (r *TaskWorkloadReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*TaskWorkloadReconciler) SetupWithManager

func (r *TaskWorkloadReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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