backup

package
v2.22.12 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package backup contains a controller that is responsible for creating backup-related resources.

Index

Constants

View Source
const (
	// SharedVolumeName is the name of the `emptyDir` volume the initContainer
	// will write the backup to.
	SharedVolumeName = "etcd-backup"
	// DefaultBackupContainerImage holds the default Image used for creating the etcd backups.
	DefaultBackupContainerImage = "gcr.io/etcd-development/etcd"
	// DefaultBackupInterval defines the default interval used to create backups.
	DefaultBackupInterval = "20m"

	ControllerName = "kkp-backup-controller"
)

Variables

This section is empty.

Functions

func Add

func Add(
	log *zap.SugaredLogger,
	mgr manager.Manager,
	numWorkers int,
	workerName string,
	backupSchedule time.Duration,
	backupContainerImage string,
	versions kubermatic.Versions,
	caBundle resources.CABundle,
	seedGetter provider.SeedGetter,
	configGetter provider.KubermaticConfigurationGetter,
) error

Add creates a new Backup controller that is responsible for creating backupjobs for all managed user clusters.

Types

type Reconciler

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

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