controllers

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewTaskWorkloadReconciler

func NewTaskWorkloadReconciler(
	logger logr.Logger,
	k8sClient client.Client,
	scheme *runtime.Scheme,
	statusGetter TaskStatusGetter,
	jobTTL time.Duration,
) *k8s.PatchingReconciler[korifiv1alpha1.TaskWorkload, *korifiv1alpha1.TaskWorkload]

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 (*TaskWorkloadReconciler) ReconcileResource added in v0.4.0

func (r *TaskWorkloadReconciler) ReconcileResource(ctx context.Context, taskWorkload *korifiv1alpha1.TaskWorkload) (ctrl.Result, error)

func (*TaskWorkloadReconciler) SetupWithManager

func (r *TaskWorkloadReconciler) SetupWithManager(mgr ctrl.Manager) *builder.Builder

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