controllers

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package controllers is the controllers package for CAPY.

Index

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

func (r *YandexClusterReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

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

func (r *YandexMachineReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳