etcdbackup

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ControllerName name of etcd backup controller.
	ControllerName = "kubermatic_etcd_backup_controller"

	// DeleteAllBackupsFinalizer indicates that the backups still need to be deleted in the backend
	DeleteAllBackupsFinalizer = "kubermatic.io/delete-all-backups"

	// BackupConfigNameLabelKey is the label key which should be used to name the BackupConfig a job belongs to
	BackupConfigNameLabelKey = "backupConfig"
	// DefaultBackupContainerImage holds the default Image used for creating the etcd backups
	DefaultBackupContainerImage = "gcr.io/etcd-development/etcd"
	// SharedVolumeName is the name of the `emptyDir` volume the initContainer
	// will write the backup to
	SharedVolumeName = "etcd-backup"
)

Variables

This section is empty.

Functions

func Add

func Add(
	mgr manager.Manager,
	log *zap.SugaredLogger,
	numWorkers int,
	workerName string,
	storeContainer *corev1.Container,
	deleteContainer *corev1.Container,
	cleanupContainer *corev1.Container,
	backupContainerImage string,
	versions kubermatic.Versions,
	caBundle resources.CABundle,
) error

Add creates a new Backup controller that is responsible for managing cluster etcd backups

Types

type Reconciler

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

Reconciler stores necessary components that are required to create etcd backups

func (*Reconciler) Reconcile

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

Reconcile handle etcd backups reconciliation.

Jump to

Keyboard shortcuts

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