Documentation ¶
Index ¶
- Constants
- Variables
- type Reconciler
- func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager, gardenCluster cluster.Cluster) error
- func (r *Reconciler) ControllerInstallationPredicate() predicate.Predicate
- func (r *Reconciler) HelmTypePredicate(ctx context.Context, reader client.Reader) predicate.Predicate
- func (r *Reconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)
Constants ¶
const ControllerName = "controllerinstallation"
ControllerName is the name of this controller.
Variables ¶
var RequeueDurationWhenResourceDeletionStillPresent = 30 * time.Second
RequeueDurationWhenResourceDeletionStillPresent is the duration used for requeueing when owned resources are still in the process of being deleted when deleting a ControllerInstallation.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct { GardenClient client.Client GardenConfig *rest.Config SeedClientSet kubernetes.Interface HelmRegistry oci.Interface Config config.GardenletConfiguration Clock clock.Clock Identity *gardencorev1beta1.Gardener GardenClusterIdentity string }
Reconciler reconciles ControllerInstallations and deploys them into the seed cluster.
func (*Reconciler) AddToManager ¶
func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager, gardenCluster cluster.Cluster) error
AddToManager adds Reconciler to the given manager.
func (*Reconciler) ControllerInstallationPredicate ¶
func (r *Reconciler) ControllerInstallationPredicate() predicate.Predicate
ControllerInstallationPredicate returns a predicate that evaluates to true in all cases except for 'Update' events. Here, it only returns true if the references change or the deletion timestamp gets set.
func (*Reconciler) HelmTypePredicate ¶
func (r *Reconciler) HelmTypePredicate(ctx context.Context, reader client.Reader) predicate.Predicate
HelmTypePredicate is a predicate which checks whether the ControllerDeployment referenced in the ControllerInstallation has .type=helm.