restore

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: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ControllerName used for identifying which controller is performing an operation.
	ControllerName = "restore-controller"
)

Variables

This section is empty.

Functions

func Add

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

Add creates a new Restore 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 ReconcileRestore

type ReconcileRestore struct {
	client.Client
	Config *rest.Config
	// contains filtered or unexported fields
}

ReconcileRestore reconciles a Restore object

func (*ReconcileRestore) Reconcile

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

Reconcile reads that state of the cluster for a Restore object and makes changes based on the state read and what is in the Restore.Spec Automatically generate RBAC rules to allow the Controller to read and write Deployments +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=restores,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=extensions.skpr.io,resources=restores/status,verbs=get;update;patch

Jump to

Keyboard shortcuts

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