vitessbackupschedule

package
v0.0.0-...-a451314 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new Controller and adds it to the Manager.

Types

type ReconcileVitessBackupsSchedule

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

ReconcileVitessBackupsSchedule reconciles a VitessBackupSchedule object

func (*ReconcileVitessBackupsSchedule) Reconcile

Reconcile implements the kubernetes Reconciler interface. The main goal of this function is to create new Job k8s object according to the VitessBackupSchedule schedule. It also takes care of removing old failed and successful jobs, given the settings of VitessBackupSchedule. The function is structured as follows:

  • Get the VitessBackupSchedule object
  • List all jobs and define the last scheduled Job
  • Clean up old Job objects
  • Create a new Job if needed

Jump to

Keyboard shortcuts

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