controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsWorkloadFinished

func IsWorkloadFinished(workload metav1.Object) (kubeflowv1.JobConditionType, bool)

IsWorkloadFinished checks if the workload is finished.

func LogConstructor

func LogConstructor(logger logr.Logger, kind string) func(*reconcile.Request) logr.Logger

LogConstructor returns a log constructor for the given kind.

Types

type CronReconciler

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

CronReconciler reconciles a Cron object.

func NewCronReconciler

func NewCronReconciler(s *runtime.Scheme, c client.Client, r client.Reader, recorder record.EventRecorder) *CronReconciler

NewCronReconciler creates a new CronReconciler instance.

func (*CronReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. The controller will reconcile the Cron object and create/manage jobs based on the cron schedule.

func (*CronReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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