Documentation
¶
Index ¶
- Constants
- Variables
- type Reconciler
- func (r *Reconciler) AddToManager(ctx context.Context, mgr manager.Manager, gardenCluster cluster.Cluster) error
- func (r *Reconciler) CalculateUsablePorts() ([]int, error)
- func (r *Reconciler) ControllerInstallationPredicate() predicate.Predicate
- func (r *Reconciler) HelmTypePredicate(ctx context.Context, reader client.Reader) predicate.Predicate
- func (r *Reconciler) MutateSpecForControlPlaneNodeBootstrapping(obj runtime.Object) error
- 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 = 5 * time.Second
RequeueDurationWhenResourceDeletionStillPresent is the duration used for requeuing 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 gardenletconfigv1alpha1.GardenletConfiguration
Clock clock.Clock
Identity *gardencorev1beta1.Gardener
GardenClusterIdentity string
GardenNamespace string
// BootstrapControlPlaneNode controls whether the pods are used to bootstrap a control plane node. If set to true,
// they are deployed to the host network. In addition, all taints are tolerated to make sure they can get deployed
// to nodes even when they are not ready yet. Furthermore, the replicas are set to 1 and a usable port range is
// provided.
BootstrapControlPlaneNode bool
}
Reconciler reconciles ControllerInstallations and deploys them into the seed cluster or the autonomous shoot 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) CalculateUsablePorts ¶ added in v1.115.0
func (r *Reconciler) CalculateUsablePorts() ([]int, error)
CalculateUsablePorts returns the next usable port range for the next controller installation.
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.
func (*Reconciler) MutateSpecForControlPlaneNodeBootstrapping ¶ added in v1.115.0
func (r *Reconciler) MutateSpecForControlPlaneNodeBootstrapping(obj runtime.Object) error
MutateSpecForControlPlaneNodeBootstrapping adapts host network, replicas, tolerations and usable ports range for autonomous shoot clusters if necessary.