Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildBackup ¶
func BuildBackup( bs *doltv1alpha.BackupSchedule, scheme *runtime.Scheme, now time.Time, ) (*doltv1alpha.Backup, error)
BuildBackup creates a Backup object from a BackupSchedule, copying all relevant spec fields and setting an owner reference for garbage collection.
func ComputeRequeueAfter ¶
ComputeRequeueAfter calculates when to next reconcile based on the cron schedule. Returns a short fallback interval on parse errors or past-due schedules.
func LastScheduleTime ¶
func LastScheduleTime(bs *doltv1alpha.BackupSchedule) time.Time
LastScheduleTime returns the last schedule time or falls back to the creation timestamp.
Types ¶
type Reconciler ¶
Reconciler handles the scheduling logic for creating Backup objects.
func NewReconciler ¶
func NewReconciler(client client.Client, scheme *runtime.Scheme) *Reconciler
NewReconciler creates a new Reconciler.
func (*Reconciler) Reconcile ¶
func (r *Reconciler) Reconcile( ctx context.Context, bs *doltv1alpha.BackupSchedule, ) (ctrl.Result, error)
Reconcile evaluates the cron schedule and creates a Backup if due.
Click to show internal directories.
Click to hide internal directories.