Documentation ¶
Index ¶
- Constants
- Variables
- type Reconciler
- func (r *Reconciler) AddToManager(mgr manager.Manager, gardenCluster cluster.Cluster, ...) error
- func (r *Reconciler) MapExtensionBackupBucketToCoreBackupBucket(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
- func (r *Reconciler) SeedNamePredicate() predicate.Predicate
Constants ¶
const ControllerName = "backupbucket"
ControllerName is the name of this controller.
Variables ¶
var RequeueDurationWhenResourceDeletionStillPresent = 5 * time.Second
RequeueDurationWhenResourceDeletionStillPresent is the duration used for requeueing when owned resources are still in the process of being deleted when deleting a BackupBucket.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶ added in v1.60.0
type Reconciler struct { GardenClient client.Client SeedClient client.Client Config config.BackupBucketControllerConfiguration Clock clock.Clock Recorder record.EventRecorder GardenNamespace string SeedName string // RateLimiter allows limiting exponential backoff for testing purposes RateLimiter ratelimiter.RateLimiter }
Reconciler reconciles the BackupBuckets.
func (*Reconciler) AddToManager ¶ added in v1.60.0
func (r *Reconciler) AddToManager(mgr manager.Manager, gardenCluster cluster.Cluster, seedCluster cluster.Cluster) error
AddToManager adds Reconciler to the given manager.
func (*Reconciler) MapExtensionBackupBucketToCoreBackupBucket ¶ added in v1.60.0
func (r *Reconciler) MapExtensionBackupBucketToCoreBackupBucket(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request
MapExtensionBackupBucketToCoreBackupBucket is a mapper.MapFunc for mapping a extensions.gardener.cloud/v1alpha1.BackupBucket to the owning core.gardener.cloud/v1beta1.BackupBucket.
func (*Reconciler) Reconcile ¶ added in v1.60.0
func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile reconciles the BackupBuckets and deploys extensions.gardener.cloud/v1alpha1.BackupBucket in the seed cluster.
func (*Reconciler) SeedNamePredicate ¶ added in v1.60.0
func (r *Reconciler) SeedNamePredicate() predicate.Predicate
SeedNamePredicate returns a predicate which returns true when the object belongs to this seed.