backupbucketscheck

package
v1.82.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const ControllerName = "seed-backupbuckets-check"

ControllerName is the name of this controller.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reconciler

type Reconciler struct {
	Client client.Client
	Config config.SeedBackupBucketsCheckControllerConfiguration
	Clock  clock.Clock
}

Reconciler reconciles Seeds and maintains the BackupBucketsReady condition according to the observed status of the referencing BackupBuckets.

func (*Reconciler) AddToManager

func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager) error

AddToManager adds Reconciler to the given manager.

func (*Reconciler) BackupBucketPredicate

func (r *Reconciler) BackupBucketPredicate() predicate.Predicate

BackupBucketPredicate reacts only on 'CREATE' and 'UPDATE' events. It returns false if .spec.seedName == nil. For updates, it only returns true when the .stauts.lastError changed.

func (*Reconciler) MapBackupBucketToSeed

func (r *Reconciler) MapBackupBucketToSeed(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request

MapBackupBucketToSeed is a mapper.MapFunc for mapping a BackupBucket to the referenced Seed.

func (*Reconciler) Reconcile

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

Reconcile reconciles Seeds and maintains the BackupBucketsReady condition according to the observed status of the referencing BackupBuckets.

Jump to

Keyboard shortcuts

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