Help us shape the future of Go! Take the 2026 Go Developer Survey

backupentry

package
v1.151.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 46 Imported by: 1

Documentation

Index

Constants

View Source
const ControllerName = "backupentry"

ControllerName is the name of this controller.

Variables

View Source
var (
	// DefaultTimeout defines how long the controller should wait until the BackupBucket resource is ready or is successfully deleted. Exposed for tests.
	DefaultTimeout = 30 * time.Second
	// DefaultSevereThreshold is the default threshold until an error reported by the component is treated as 'severe'. Exposed for tests.
	DefaultSevereThreshold = 15 * time.Second
	// DefaultInterval is the default interval for retry operations. Exposed for tests.
	DefaultInterval = 5 * time.Second
)
View Source
var RequeueDurationWhenResourceDeletionStillPresent = 5 * time.Second

RequeueDurationWhenResourceDeletionStillPresent is the duration used for requeuing when owned resources are still in the process of being deleted when deleting a BackupEntry.

Functions

This section is empty.

Types

type Reconciler added in v1.66.0

type Reconciler struct {
	GardenClient    client.Client
	SeedClient      client.Client
	Recorder        events.EventRecorder
	Config          gardenletconfigv1alpha1.BackupEntryControllerConfiguration
	Clock           clock.Clock
	SeedName        string
	GardenNamespace string

	// RateLimiter allows limiting exponential backoff for testing purposes
	RateLimiter workqueue.TypedRateLimiter[reconcile.Request]
}

Reconciler reconciles the BackupEntries.

func (*Reconciler) AddToManager added in v1.66.0

func (r *Reconciler) AddToManager(mgr manager.Manager, gardenCluster, seedCluster cluster.Cluster) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) BackupEntryPredicate added in v1.113.0

func (r *Reconciler) BackupEntryPredicate(obj client.Object) bool

BackupEntryPredicate is a predicate which returns true if the core.gardener.cloud/v1beta1.BackupEntry has not yet been successfully migrated or has the `gardener.cloud/operation: restore` annotation and this gardenlet's seed is responsible for this backupentry.

func (*Reconciler) EnqueueWithJitterDelay

func (r *Reconciler) EnqueueWithJitterDelay() handler.EventHandler

EnqueueWithJitterDelay returns handler.Funcs which enqueues the object with a random Jitter duration when the JitterUpdate is enabled in BackupEntry controller configuration. All other events are normally enqueued.

func (*Reconciler) MapBackupBucketToBackupEntry added in v1.75.0

func (r *Reconciler) MapBackupBucketToBackupEntry(log logr.Logger) handler.MapFunc

MapBackupBucketToBackupEntry is a handler.MapFunc for mapping a core.gardener.cloud/v1beta1.BackupBucket to the core.gardener.cloud/v1beta1.BackupEntry that references it.

func (*Reconciler) MapExtensionBackupEntryToCoreBackupEntry added in v1.66.0

func (r *Reconciler) MapExtensionBackupEntryToCoreBackupEntry(log logr.Logger) handler.MapFunc

MapExtensionBackupEntryToCoreBackupEntry is a handler.MapFunc for mapping an extensions.gardener.cloud/v1alpha1.BackupEntry to the owning core.gardener.cloud/v1beta1.BackupEntry.

func (*Reconciler) Reconcile added in v1.66.0

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

Reconcile reconciles the BackupEntry and deploys extensions.gardener.cloud/v1alpha1.BackupEntry in the seed cluster.

Jump to

Keyboard shortcuts

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