controllers

package
v0.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceResolver

func NewResourceResolver(config *rest.Config) *realResourceResolver

NewResourceResolver creates a resource resolver to find the corresponding group version resource for a given group version kind.

Types

type BackupScheduleReconciler

type BackupScheduleReconciler struct {
	client.Client
	Log logr.Logger
	// contains filtered or unexported fields
}

BackupScheduleReconciler reconciles a BackupSchedule object

func NewBackupScheduleReconciler

func NewBackupScheduleReconciler(mgr manager.Manager, bsCtrl backupScheduleControl, caCtrl cronAnythingControl, backupCtrl backupControl) *BackupScheduleReconciler

NewBackupScheduleReconciler returns a BackupScheduleReconciler object.

func (*BackupScheduleReconciler) Reconcile

Reconcile is a generic reconcile function for BackupSchedule resources.

type ReconcileCronAnything

type ReconcileCronAnything struct {
	Log logr.Logger
	// contains filtered or unexported fields
}

ReconcileCronAnything reconciles a CronAnything object.

func NewCronAnythingReconciler

func NewCronAnythingReconciler(mgr manager.Manager, log logr.Logger, cronAnythingControl cronAnythingControl) (*ReconcileCronAnything, error)

NewCronAnythingReconciler returns a new CronAnything Reconciler.

func (*ReconcileCronAnything) Reconcile

Reconcile loop for CronAnything. The CronAnything controller does not watch child reosources. To make sure the reconcile loop are triggered when a cron expression triggers, the controller uses RequeueAfter.

Jump to

Keyboard shortcuts

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