Documentation ¶
Index ¶
- Constants
- type Reconciler
- func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager) error
- func (r *Reconciler) BackupBucketPredicate() predicate.Predicate
- func (r *Reconciler) MapBackupBucketToSeed(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request
- func (r *Reconciler) Reconcile(ctx context.Context, req reconcile.Request) (reconcile.Result, error)
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.