volumesnapshot

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package volumesnapshot contains the VolumeSnapshot reconciler that is used to take VolumeSnapshot backups

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsurePodIsUnfenced added in v1.21.2

func EnsurePodIsUnfenced(
	ctx context.Context,
	cli client.Client,
	recorder record.EventRecorder,
	cluster *apiv1.Cluster,
	backup *apiv1.Backup,
	targetPod *corev1.Pod,
) error

EnsurePodIsUnfenced removes the fencing status from the cluster

func GetSnapshotsBackupTimes added in v1.21.2

func GetSnapshotsBackupTimes(
	ctx context.Context,
	cli client.Client,
	namespace string,
	clusterName string,
) (*time.Time, *time.Time, error)

GetSnapshotsBackupTimes gets the time of the oldest and newest snapshots for the cluster

Types

type ExecutorBuilder

type ExecutorBuilder struct {
	// contains filtered or unexported fields
}

ExecutorBuilder is a struct capable of creating a Reconciler

func NewReconcilerBuilder added in v1.21.2

func NewReconcilerBuilder(
	cli client.Client,
	recorder record.EventRecorder,
) *ExecutorBuilder

NewReconcilerBuilder instantiates a new ExecutorBuilder with the minimum required data

func (*ExecutorBuilder) Build

func (e *ExecutorBuilder) Build() *Reconciler

Build returns the Reconciler instance

type Reconciler

type Reconciler struct {
	// contains filtered or unexported fields
}

Reconciler is an object capable of executing a volume snapshot on a running cluster

func (*Reconciler) Reconcile added in v1.21.2

func (se *Reconciler) Reconcile(
	ctx context.Context,
	cluster *apiv1.Cluster,
	backup *apiv1.Backup,
	targetPod *corev1.Pod,
	pvcs []corev1.PersistentVolumeClaim,
) (*ctrl.Result, error)

Reconcile the volume snapshot of the given cluster instance

Jump to

Keyboard shortcuts

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