controller

package
v0.0.0-...-bc8f79a Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TicketFinalizerName = "korder.dev/ticket-finalizer"
	GuardianPodPrefix   = "korder-guardian"
)
View Source
const (
	OrderFinalizerName = "korder.dev/order-finalizer"
)
View Source
const (
	QuotaFinalizerName = "korder.dev/quota-finalizer"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderReconciler

type OrderReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

OrderReconciler reconciles a Order object

func (*OrderReconciler) Reconcile

func (r *OrderReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile manages the lifecycle of tickets based on order specifications

func (*OrderReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type QuotaReconciler

type QuotaReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

QuotaReconciler reconciles a Quota object

func (*QuotaReconciler) Reconcile

func (r *QuotaReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile enforces resource quotas on Orders and Tickets

func (*QuotaReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

func (*QuotaReconciler) ValidateQuota

func (r *QuotaReconciler) ValidateQuota(ctx context.Context, namespace string, resourceRequests corev1.ResourceList) error

ValidateQuota validates if a new order or ticket would exceed quotas

type TicketReconciler

type TicketReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

TicketReconciler reconciles a Ticket object

func (*TicketReconciler) Reconcile

func (r *TicketReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile manages guardian pods and ticket lifecycle

func (*TicketReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL