Documentation
¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- type ReconcileBackupScheduled
- func (r *ReconcileBackupScheduled) CreateOnSchedule(scheduled *extensionsv1beta1.BackupScheduled) (skprmetav1.ScheduledStatus, error)
- func (r *ReconcileBackupScheduled) NextReconcile(scheduled *extensionsv1beta1.BackupScheduled) (reconcile.Result, error)
- func (r *ReconcileBackupScheduled) Reconcile(request reconcile.Request) (reconcile.Result, error)
- func (r *ReconcileBackupScheduled) UpdateStatus(scheduled *extensionsv1beta1.BackupScheduled, ...) error
Constants ¶
const ControllerName = "backup-scheduled-controller"
ControllerName used for identifying which controller is performing an operation.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReconcileBackupScheduled ¶
ReconcileBackupScheduled reconciles a BackupScheduled object
func (*ReconcileBackupScheduled) CreateOnSchedule ¶
func (r *ReconcileBackupScheduled) CreateOnSchedule(scheduled *extensionsv1beta1.BackupScheduled) (skprmetav1.ScheduledStatus, error)
CreateOnSchedule will create a Backup if it is time.
func (*ReconcileBackupScheduled) NextReconcile ¶
func (r *ReconcileBackupScheduled) NextReconcile(scheduled *extensionsv1beta1.BackupScheduled) (reconcile.Result, error)
NextReconcile time will determine when the reconcile should run next.
func (*ReconcileBackupScheduled) Reconcile ¶
Reconcile reads that state of the cluster for a BackupScheduled object and makes changes based on the state read and what is in the BackupScheduled.Spec Automatically generate RBAC rules to allow the Controller to read and write Backups +kubebuilder:rbac:groups=extensions.skpr.io,resources=backupscheduleds,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=extensions.skpr.io,resources=backupscheduleds/status,verbs=get;update;patch +kubebuilder:rbac:groups=extensions.skpr.io,resources=backups,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=extensions.skpr.io,resources=backups/status,verbs=get;update;patch
func (*ReconcileBackupScheduled) UpdateStatus ¶
func (r *ReconcileBackupScheduled) UpdateStatus(scheduled *extensionsv1beta1.BackupScheduled, status skprmetav1.ScheduledStatus) error
UpdateStatus of the BackupScheduled object.