Documentation
¶
Index ¶
Constants ¶
const ( // DefaultApplicationAPIGroup is the default API group for applications // when not specified in ApplicationRef or ApplicationSelector. // Deprecated: Use backupsv1alpha1.DefaultApplicationAPIGroup instead. DefaultApplicationAPIGroup = backupsv1alpha1.DefaultApplicationAPIGroup )
Variables ¶
This section is empty.
Functions ¶
func NormalizeApplicationRef ¶
func NormalizeApplicationRef(ref corev1.TypedLocalObjectReference) corev1.TypedLocalObjectReference
NormalizeApplicationRef sets the default apiGroup to DefaultApplicationAPIGroup if it's not specified. Deprecated: Use backupsv1alpha1.NormalizeApplicationRef instead.
Types ¶
type BackupJobReconciler ¶
type BackupJobReconciler struct {
client.Client
dynamic.Interface
meta.RESTMapper
Scheme *runtime.Scheme
Recorder record.EventRecorder
}
BackupVeleroStrategyReconciler reconciles BackupJob with a strategy referencing Velero.strategy.backups.cozystack.io objects.
func (*BackupJobReconciler) SetupWithManager ¶
func (r *BackupJobReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers our controller with the Manager and sets up watches.
type PlanReconciler ¶
PlanReconciler reconciles a Plan object
func (*PlanReconciler) SetupWithManager ¶
func (r *PlanReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager registers our controller with the Manager and sets up watches.
type ResolvedBackupConfig ¶
type ResolvedBackupConfig struct {
StrategyRef corev1.TypedLocalObjectReference
Parameters map[string]string
}
ResolvedBackupConfig contains the resolved strategy and storage configuration from a BackupClass.
func ResolveBackupClass ¶
func ResolveBackupClass( ctx context.Context, c client.Client, backupClassName string, applicationRef corev1.TypedLocalObjectReference, ) (*ResolvedBackupConfig, error)
ResolveBackupClass resolves a BackupClass and finds the matching strategy for the given application. It normalizes the applicationRef's apiGroup (defaults to apps.cozystack.io if not specified) and matches it against the strategies in the BackupClass.