Documentation
¶
Overview ¶
Package controllers is the controllers package for CAPY.
Index ¶
- Constants
- type YandexClusterReconciler
- type YandexMachineReconciler
- func (r *YandexMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
- func (r *YandexMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
- func (r *YandexMachineReconciler) YandexClusterToYandexMachines(ctx context.Context) handler.MapFunc
Constants ¶
View Source
const ( // RequeueDuration is pause before reconcile will be repeated. RequeueDuration time.Duration = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type YandexClusterReconciler ¶
type YandexClusterReconciler struct { client.Client Scheme *runtime.Scheme YandexClient yandex.Client Config options.Config }
YandexClusterReconciler reconciles a YandexCluster object.
func (*YandexClusterReconciler) Reconcile ¶
func (r *YandexClusterReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, rerr 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.
func (*YandexClusterReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type YandexMachineReconciler ¶
type YandexMachineReconciler struct { client.Client Scheme *runtime.Scheme YandexClient yandex.Client }
YandexMachineReconciler reconciles a YandexMachine object.
func (*YandexMachineReconciler) Reconcile ¶
func (r *YandexMachineReconciler) Reconcile(ctx context.Context, req ctrl.Request) (_ ctrl.Result, reterr error)
Reconcile brings YandexMachine into desired state.
func (*YandexMachineReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
func (*YandexMachineReconciler) YandexClusterToYandexMachines ¶
func (r *YandexMachineReconciler) YandexClusterToYandexMachines(ctx context.Context) handler.MapFunc
YandexClusterToYandexMachines is a handler.ToRequestsFunc to be used to enqeue requests for reconciliation of YandexMachines.
Click to show internal directories.
Click to hide internal directories.