Documentation ¶
Index ¶
- Constants
- Variables
- type Reconciler
- func (r *Reconciler) AddToManager(mgr manager.Manager, gardenCluster, seedCluster cluster.Cluster) error
- func (r *Reconciler) MapExtensionBackupEntryToCoreBackupEntry(ctx context.Context, log logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
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 succesfully 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 requeueing 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 record.EventRecorder Config config.BackupEntryControllerConfiguration Clock clock.Clock SeedName string GardenNamespace string // RateLimiter allows limiting exponential backoff for testing purposes RateLimiter ratelimiter.RateLimiter }
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) MapExtensionBackupEntryToCoreBackupEntry ¶ added in v1.66.0
func (r *Reconciler) MapExtensionBackupEntryToCoreBackupEntry(ctx context.Context, log logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request
MapExtensionBackupEntryToCoreBackupEntry is a mapper.MapFunc for mapping a extensions.gardener.cloud/v1alpha1.BackupEntry to the owning core.gardener.cloud/v1beta1.BackupEntry.
Click to show internal directories.
Click to hide internal directories.