Documentation
¶
Index ¶
- type GardenerShootClusterReconciler
- func (r *GardenerShootClusterReconciler) MapShootToGardenerShootClusterObject(ctx context.Context, obj client.Object) []mcreconcile.Request
- func (r *GardenerShootClusterReconciler) Reconcile(ctx context.Context, req mcreconcile.Request) (ctrl.Result, error)
- func (r *GardenerShootClusterReconciler) SetupWithManager(mgr mcmanager.Manager, targetCluster controllerRuntimeCluster.Cluster) error
- type GardenerWorkerPoolReconciler
- func (r *GardenerWorkerPoolReconciler) MapShootToGardenerWorkerPoolObject(ctx context.Context, obj client.Object) []mcreconcile.Request
- func (r *GardenerWorkerPoolReconciler) Reconcile(ctx context.Context, req mcreconcile.Request) (ctrl.Result, error)
- func (r *GardenerWorkerPoolReconciler) SetupWithManager(mgr mcmanager.Manager, targetCluster controllerRuntimeCluster.Cluster) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GardenerShootClusterReconciler ¶
type GardenerShootClusterReconciler struct {
Manager mcmanager.Manager
GardenerClient client.Client
IsKCP bool
PrioritizeShoot bool
}
GardenerShootClusterReconciler reconciles a GardenerShootCluster object.
func (*GardenerShootClusterReconciler) MapShootToGardenerShootClusterObject ¶
func (r *GardenerShootClusterReconciler) MapShootToGardenerShootClusterObject(ctx context.Context, obj client.Object) []mcreconcile.Request
MapShootToGardenerShootClusterObject maps a Shoot object to a GardenerShootCluster object for reconciliation.
func (*GardenerShootClusterReconciler) Reconcile ¶
func (r *GardenerShootClusterReconciler) Reconcile(ctx context.Context, req mcreconcile.Request) (ctrl.Result, error)
Reconcile reconciles and syncs the GardenerShootCluster resource with the corresponding Shoot resource.
func (*GardenerShootClusterReconciler) SetupWithManager ¶
func (r *GardenerShootClusterReconciler) SetupWithManager(mgr mcmanager.Manager, targetCluster controllerRuntimeCluster.Cluster) error
SetupWithManager sets up the controller with the Manager.
type GardenerWorkerPoolReconciler ¶
type GardenerWorkerPoolReconciler struct {
Manager mcmanager.Manager
GardenerClient client.Client
IsKCP bool
Scheme *runtime.Scheme
PrioritizeShoot bool
}
GardenerWorkerPoolReconciler reconciles a GardenerWorkerPool object
func (*GardenerWorkerPoolReconciler) MapShootToGardenerWorkerPoolObject ¶
func (r *GardenerWorkerPoolReconciler) MapShootToGardenerWorkerPoolObject(ctx context.Context, obj client.Object) []mcreconcile.Request
MapShootToGardenerWorkerPoolObject maps a Shoot object to a list of GardenerWorkerPool reconcile requests.
func (*GardenerWorkerPoolReconciler) Reconcile ¶
func (r *GardenerWorkerPoolReconciler) Reconcile(ctx context.Context, req mcreconcile.Request) (ctrl.Result, error)
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the GardenerWorkerPool object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.20.4/pkg/reconcile
func (*GardenerWorkerPoolReconciler) SetupWithManager ¶
func (r *GardenerWorkerPoolReconciler) SetupWithManager(mgr mcmanager.Manager, targetCluster controllerRuntimeCluster.Cluster) error
SetupWithManager sets up the controller with the Manager.