controller

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrConflictDetected

type ErrConflictDetected struct {
	Ref      backupv1alpha1.ResourceRef
	Expected string // resourceVersion at prepare time
	Actual   string // resourceVersion at commit time (empty if resource was deleted)
}

ErrConflictDetected indicates a target resource was modified between prepare and commit.

func (*ErrConflictDetected) Error

func (e *ErrConflictDetected) Error() string

type ErrRollbackConflict

type ErrRollbackConflict struct {
	Ref       backupv1alpha1.ResourceRef
	StoredRV  string // resourceVersion when rollback state was captured
	CurrentRV string // current resourceVersion (empty if deleted)
}

ErrRollbackConflict indicates a resource was modified externally since the rollback state was captured, making automatic rollback unsafe.

func (*ErrRollbackConflict) Error

func (e *ErrRollbackConflict) Error() string

type ResourceOpError

type ResourceOpError struct {
	Op  string // e.g. "parsing apiVersion", "fetching for update", "unmarshaling content"
	Ref string // human-readable resource identifier
	Err error
}

ResourceOpError wraps an error with resource operation context.

func (*ResourceOpError) Error

func (e *ResourceOpError) Error() string

func (*ResourceOpError) Unwrap

func (e *ResourceOpError) Unwrap() error

type RollbackDataError

type RollbackDataError struct {
	Key string
	Err error // nil for missing data, non-nil for deserialization failure
}

RollbackDataError indicates missing or corrupt rollback state.

func (*RollbackDataError) Error

func (e *RollbackDataError) Error() string

func (*RollbackDataError) Unwrap

func (e *RollbackDataError) Unwrap() error

type TransactionReconciler

type TransactionReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	BaseCfg  *rest.Config
	Mapper   apimeta.RESTMapper
	LockMgr  lock.Manager
	Recorder record.EventRecorder
	// contains filtered or unexported fields
}

TransactionReconciler reconciles a Transaction object.

func (*TransactionReconciler) Reconcile

func (r *TransactionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*TransactionReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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