restic

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2019 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "backup-restic-controller"

ControllerName used for identifying which controller is performing an operation.

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager, params Params) error

Add creates a new Backup Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

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

func (r *ReconcileBackup) Reconcile(request reconcile.Request) (reconcile.Result, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL