Documentation
¶
Index ¶
- Constants
- func AddToManager(mgr manager.Manager, ...) error
- func MapBackupBucketToSeed(_ context.Context, obj client.Object) []reconcile.Request
- func MapBackupEntryToSeed(_ context.Context, obj client.Object) []reconcile.Request
- func MapControllerDeploymentToAllSeeds(log logr.Logger, r *controllerinstallation.Reconciler) handler.MapFunc
- func MapControllerInstallationToSeed(_ context.Context, obj client.Object) []reconcile.Request
- func MapShootToSeed(log logr.Logger, r *controllerinstallation.Reconciler) handler.MapFunc
- func MapToAllSeeds(log logr.Logger, r *controllerinstallation.Reconciler) handler.MapFunc
- func SeedPredicate() predicate.Predicate
Constants ¶
const ControllerName = "controllerinstallation-seed"
ControllerName is the name of this controller.
Variables ¶
This section is empty.
Functions ¶
func AddToManager ¶
func AddToManager(mgr manager.Manager, config controllermanagerconfigv1alpha1.ControllerRegistrationControllerConfiguration) error
AddToManager adds the ControllerInstallation Reconciler to the given manager.
func MapBackupBucketToSeed ¶
MapBackupBucketToSeed returns a reconcile.Request object for the seed specified in the .spec.seedName field.
func MapBackupEntryToSeed ¶
MapBackupEntryToSeed returns a reconcile.Request object for the seed specified in the .spec.seedName field.
func MapControllerDeploymentToAllSeeds ¶
func MapControllerDeploymentToAllSeeds(log logr.Logger, r *controllerinstallation.Reconciler) handler.MapFunc
MapControllerDeploymentToAllSeeds returns reconcile.Request objects for all seeds in case there is at least one ControllerRegistration which references the ControllerDeployment.
func MapControllerInstallationToSeed ¶
MapControllerInstallationToSeed returns a reconcile.Request object for the seed specified in the .spec.seedRef.name field. For self-hosted shoot seeds, it additionally enqueues the seed matching a .spec.shootRef that points to a shoot in the garden namespace (where the shoot name equals the seed name). This is necessary because the shoot reconciler creates ControllerInstallations without .spec.seedRef, so they wouldn't trigger the seed reconciler via .spec.seedRef alone. The seed reconciler must be re-evaluated to patch .spec.seedRef onto shoot-owned CIs and to skip creation for registrations already covered by the shoot reconciler.
func MapShootToSeed ¶
func MapShootToSeed(log logr.Logger, r *controllerinstallation.Reconciler) handler.MapFunc
MapShootToSeed returns a reconcile.Request object for the seed specified in the .spec.seedName field. For self-hosted shoot clusters in the garden namespace, it additionally enqueues the corresponding Seed (which has the same name as the Shoot) so that the seed reconciler can re-evaluate its ControllerInstallations.
func MapToAllSeeds ¶
func MapToAllSeeds(log logr.Logger, r *controllerinstallation.Reconciler) handler.MapFunc
MapToAllSeeds returns reconcile.Request objects for all existing seeds in the system.
func SeedPredicate ¶
SeedPredicate returns true for all Seed events except for updates. Here, it returns true when there is a change in the spec or labels or annotations or when the deletion timestamp is set.
Types ¶
This section is empty.