Documentation
¶
Index ¶
- func GetBackups(ctx context.Context, pod *corev1.Pod, clientFactory medusa.ClientFactory) ([]*medusa.BackupSummary, error)
- type Clock
- type MedusaBackupJobReconciler
- type MedusaBackupScheduleReconciler
- type MedusaConfigurationReconciler
- func (r *MedusaConfigurationReconciler) CheckSecretPresence(ctx context.Context, client client.Client, req ctrl.Request, secretName string) error
- func (r *MedusaConfigurationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *MedusaConfigurationReconciler) SetupWithManager(mgr ctrl.Manager) error
- type MedusaRestoreJobReconciler
- type MedusaTaskReconciler
- type RealClock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBackups ¶ added in v1.9.0
func GetBackups(ctx context.Context, pod *corev1.Pod, clientFactory medusa.ClientFactory) ([]*medusa.BackupSummary, error)
Types ¶
type MedusaBackupJobReconciler ¶ added in v1.1.0
type MedusaBackupJobReconciler struct { *config.ReconcilerConfig client.Client Scheme *runtime.Scheme medusa.ClientFactory }
MedusaBackupJobReconciler reconciles a MedusaBackupJob object
func (*MedusaBackupJobReconciler) SetupWithManager ¶ added in v1.1.0
func (r *MedusaBackupJobReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type MedusaBackupScheduleReconciler ¶ added in v1.2.0
MedusaBackupScheduleReconciler reconciles a MedusaBackupSchedule object
func (*MedusaBackupScheduleReconciler) SetupWithManager ¶ added in v1.2.0
func (r *MedusaBackupScheduleReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type MedusaConfigurationReconciler ¶ added in v1.12.0
type MedusaConfigurationReconciler struct { *config.ReconcilerConfig client.Client Scheme *runtime.Scheme }
MedusaConfigurationReconciler reconciles a MedusaConfiguration object
func (*MedusaConfigurationReconciler) CheckSecretPresence ¶ added in v1.12.0
func (*MedusaConfigurationReconciler) Reconcile ¶ added in v1.12.0
func (r *MedusaConfigurationReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the MedusaConfiguration object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.14.1/pkg/reconcile
func (*MedusaConfigurationReconciler) SetupWithManager ¶ added in v1.12.0
func (r *MedusaConfigurationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type MedusaRestoreJobReconciler ¶ added in v1.1.0
type MedusaRestoreJobReconciler struct { *config.ReconcilerConfig client.Client Scheme *runtime.Scheme medusa.ClientFactory }
MedusaRestoreJobReconciler reconciles a MedusaRestoreJob object
func (*MedusaRestoreJobReconciler) SetupWithManager ¶ added in v1.1.0
func (r *MedusaRestoreJobReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type MedusaTaskReconciler ¶ added in v1.1.0
type MedusaTaskReconciler struct { *config.ReconcilerConfig client.Client Scheme *runtime.Scheme medusa.ClientFactory }
MedusaTaskReconciler reconciles a MedusaTask object
func (*MedusaTaskReconciler) SetupWithManager ¶ added in v1.1.0
func (r *MedusaTaskReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.