controller

package
v0.0.0-...-d56a9c3 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GarbageCollector garbageCollector
)

Functions

func UntarFiles

func UntarFiles(src, dest string, files []string) error

UntarFiles unpack only specified files from an archive to the destination directory. Copied from checkpointctl

Types

type CheckpointRestoreOperatorReconciler

type CheckpointRestoreOperatorReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

CheckpointRestoreOperatorReconciler reconciles a CheckpointRestoreOperator object

func (*CheckpointRestoreOperatorReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.15.0/pkg/reconcile

func (*CheckpointRestoreOperatorReconciler) SetupWithManager

func (r *CheckpointRestoreOperatorReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type Policy

type Policy struct {
	RetainOrphan      bool
	MaxCheckpoints    int
	MaxCheckpointSize resource.Quantity
	MaxTotalSize      resource.Quantity
}

type RetentionPolicy

type RetentionPolicy int
const (
	ByCount RetentionPolicy = iota
	BySize
)

This constants are used to specify the policy criteria for selecting which checkpoint archives to delete .

Jump to

Keyboard shortcuts

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