Documentation ¶
Index ¶
- Constants
- Variables
- type Reconciler
- func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager, gardenCluster cluster.Cluster, ...) error
- func (r *Reconciler) EnqueueWithJitterDelay() handler.EventHandler
- func (r *Reconciler) ManagedSeedPredicate(ctx context.Context, seedName string) predicate.Predicate
- func (r *Reconciler) MapSeedToManagedSeed(_ 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) SeedOfManagedSeedPredicate(ctx context.Context, seedName string) predicate.Predicate
Constants ¶
const ControllerName = "managedseed"
ControllerName is the name of this controller.
Variables ¶
var Actuator gardenletdeployer.Interface
Actuator is exposed for testing.
var RandomDurationWithMetaDuration = utils.RandomDurationWithMetaDuration
RandomDurationWithMetaDuration is an alias for `utils.RandomDurationWithMetaDuration`. Exposed for unit tests.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶ added in v1.63.0
type Reconciler struct { GardenConfig *rest.Config GardenAPIReader client.Reader GardenClient client.Client SeedClient client.Client Config config.GardenletConfiguration Clock clock.Clock Recorder record.EventRecorder ShootClientMap clientmap.ClientMap GardenNamespaceGarden string GardenNamespaceShoot string }
Reconciler reconciles the ManagedSeed.
func (*Reconciler) AddToManager ¶ added in v1.63.0
func (r *Reconciler) AddToManager( ctx context.Context, mgr manager.Manager, gardenCluster cluster.Cluster, seedCluster cluster.Cluster, ) error
AddToManager adds Reconciler to the given manager.
func (*Reconciler) EnqueueWithJitterDelay ¶ added in v1.63.0
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 ManagedSeed controller configuration. All other events are normally enqueued.
func (*Reconciler) ManagedSeedPredicate ¶ added in v1.63.0
ManagedSeedPredicate returns the predicate for ManagedSeed events.
func (*Reconciler) MapSeedToManagedSeed ¶ added in v1.63.0
func (r *Reconciler) MapSeedToManagedSeed(_ context.Context, _ logr.Logger, _ client.Reader, obj client.Object) []reconcile.Request
MapSeedToManagedSeed is a mapper.MapFunc for mapping a Seed to the owning ManagedSeed.
func (*Reconciler) Reconcile ¶ added in v1.63.0
func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Reconcile performs the main reconciliation logic.
func (*Reconciler) SeedOfManagedSeedPredicate ¶ added in v1.63.0
func (r *Reconciler) SeedOfManagedSeedPredicate(ctx context.Context, seedName string) predicate.Predicate
SeedOfManagedSeedPredicate returns the predicate for Seed events.