etcdrestore

package
v2.22.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "kkp-etcd-restore-controller"

	// FinishRestoreFinalizer indicates that the restore is rebuilding the etcd statefulset.
	FinishRestoreFinalizer = "kubermatic.k8c.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.k8c.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,
	seedGetter provider.SeedGetter,
) 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