etcdrestore

package
v2.17.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "kubermatic_etcd_restore_controller"

	// FinishRestoreFinalizer indicates that the restore is rebuilding the etcd statefulset
	FinishRestoreFinalizer = "kubermatic.io/finish-restore"

	// ActiveRestoreAnnotationName is the cluster annotation that records the EtcdRestore resource that's currently
	// being restored into the cluster, if any. This is also used for mutual exclusion, i.e. to make sure that not
	// more than one EtcdRestore resource is active for the cluster at the same time.
	ActiveRestoreAnnotationName = "kubermatic.io/active-restore"
)

Variables

This section is empty.

Functions

func Add

func Add(
	mgr manager.Manager,
	log *zap.SugaredLogger,
	numWorkers int,
	workerName string,
	versions kubermatic.Versions,
) error

Add creates a new etcd restore controller that is responsible for managing cluster etcd restores

Types

type Reconciler

type Reconciler struct {
	ctrlruntimeclient.Client
	// contains filtered or unexported fields
}

Reconciler stores necessary components that are required to restore etcd backups

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Jump to

Keyboard shortcuts

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