cronbackupcontroller

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParentUIDFromBackup

func GetParentUIDFromBackup(b *v1.Backup) (types.UID, bool)

GetParentUIDFromBackup extracts UID of job's parent and whether it was found

func GroupBackupsByParent

func GroupBackupsByParent(bs []*v1.Backup) map[types.UID][]*v1.Backup

func ParseSchedule added in v1.3.1

func ParseSchedule(schedule string, now time.Time) string

Types

type CronBackupReconciler

type CronBackupReconciler struct {
	ClusterWriter     cluster.ClusterWriter
	ClusterLister     listerv1.ClusterLister
	NodeLister        listerv1.NodeLister
	BackupLister      listerv1.BackupLister
	OperationWriter   operation.Writer
	BackupWriter      cluster.BackupWriter
	BackupPointLister listerv1.BackupPointLister
	CronBackupLister  listerv1.CronBackupLister
	CronBackupWriter  cluster.CronBackupWriter
	CmdDelivery       service.CmdDelivery
	Now               func() time.Time
}

func (*CronBackupReconciler) Reconcile

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

func (*CronBackupReconciler) SetupWithManager

func (r *CronBackupReconciler) SetupWithManager(mgr manager.Manager, cache informers.InformerCache) error

Jump to

Keyboard shortcuts

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