Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileVitessBackupsSchedule ¶
type ReconcileVitessBackupsSchedule struct {
// contains filtered or unexported fields
}
ReconcileVitessBackupsSchedule reconciles a VitessBackupSchedule object
func (*ReconcileVitessBackupsSchedule) Reconcile ¶
func (r *ReconcileVitessBackupsSchedule) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
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
Click to show internal directories.
Click to hide internal directories.