Documentation ¶
Index ¶
Constants ¶
const ControllerName = "backup-restic-controller"
ControllerName used for identifying which controller is performing an operation.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Params ¶
type Params struct {
Pod resticutils.PodSpecParams
}
Params which are passed into this controller.
type ReconcileBackup ¶
type ReconcileBackup struct { client.Client LogClient logs.Interface // contains filtered or unexported fields }
ReconcileBackup reconciles a Backup object
func (*ReconcileBackup) Reconcile ¶
Reconcile reads that state of the cluster for a Backup object and makes changes based on the state read and what is in the Backup.Spec Automatically generate RBAC rules to allow the Controller to read and write Jobs. +kubebuilder:rbac:groups=batch,resources=jobs,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=batch,resources=jobs/status,verbs=get +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