controllers

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BindRequestReconciler

type BindRequestReconciler struct {
	Client client.Client
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

BindRequestReconciler reconciles a BindRequest object

func NewBindRequestReconciler

func NewBindRequestReconciler(
	client client.Client,
	scheme *runtime.Scheme,
	eventRecorder record.EventRecorder,
	params *ReconcilerParams,
	binder binding.Interface,
	resourceReservation resourcereservation.Interface,
) *BindRequestReconciler

func (*BindRequestReconciler) Reconcile

func (r *BindRequestReconciler) Reconcile(ctx context.Context, req ctrl.Request) (result ctrl.Result, err 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.

For more details, check Reconcile and its Result here: - https://pkgo.dev/sigs.k8s.io/[email protected]/pkg/reconcile

func (*BindRequestReconciler) SetupWithManager

func (r *BindRequestReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*BindRequestReconciler) UpdateStatus

func (r *BindRequestReconciler) UpdateStatus(
	ctx context.Context, bindRequest *schedulingv1alpha2.BindRequest, result ctrl.Result, err error,
) (ctrl.Result, error)

type PodReconciler

type PodReconciler struct {
	Client              client.Client
	Scheme              *runtime.Scheme
	ResourceReservation resourcereservation.Interface
	SchedulerName       string
}

PodReconciler reconciles a Pod object

func (*PodReconciler) Reconcile

func (r *PodReconciler) Reconcile(ctx context.Context, req ctrl.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. For more details, check Reconcile and its Result here: - https://pkgo.dev/sigs.k8s.io/[email protected]/pkg/reconcile

func (*PodReconciler) SetupWithManager

func (r *PodReconciler) SetupWithManager(
	mgr ctrl.Manager, params *ReconcilerParams,
) error

SetupWithManager sets up the controller with the Manager.

type ReconcilerParams

type ReconcilerParams struct {
	MaxConcurrentReconciles     int
	RateLimiterBaseDelaySeconds int
	RateLimiterMaxDelaySeconds  int
}

Jump to

Keyboard shortcuts

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