controller

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: BSD-3-Clause Imports: 39 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginFinalizer is the finalizer added to Plugin resources to ensure JAR cleanup.
	PluginFinalizer = "mc.k8s.lex.la/plugin-cleanup"

	// AnnotationApplyNow triggers immediate update application, bypassing maintenance window.
	// Value should be a Unix timestamp (seconds since epoch) of when the annotation was set.
	// Annotations older than 5 minutes are ignored to prevent stale triggers.
	AnnotationApplyNow = "mc.k8s.lex.la/apply-now"
)

Finalizer and annotation constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type PaperMCServerReconciler

type PaperMCServerReconciler struct {
	client.Client
	Scheme         *runtime.Scheme
	Config         *rest.Config
	PaperClient    *paper.Client
	Solver         solver.Solver
	RegistryClient *registry.Client
}

PaperMCServerReconciler reconciles a PaperMCServer object.

func (*PaperMCServerReconciler) Reconcile

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

Reconcile implements the reconciliation loop for PaperMCServer resources.

func (*PaperMCServerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type PluginReconciler

type PluginReconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	PluginClient plugins.PluginClient
	Solver       solver.Solver
}

PluginReconciler reconciles a Plugin object.

func (*PluginReconciler) Reconcile

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

Reconcile implements the reconciliation loop for Plugin resources.

func (*PluginReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type UpdateReconciler

type UpdateReconciler struct {
	client.Client
	Scheme       *runtime.Scheme
	PaperClient  *paper.Client
	PluginClient plugins.PluginClient
	// contains filtered or unexported fields
}

UpdateReconciler reconciles PaperMCServer resources for scheduled updates.

func (*UpdateReconciler) Reconcile

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

Reconcile reconciles PaperMCServer resources for update management.

func (*UpdateReconciler) SetCron

func (r *UpdateReconciler) SetCron(scheduler testutil.CronScheduler)

SetCron sets the cron scheduler for the reconciler.

func (*UpdateReconciler) SetupWithManager

func (r *UpdateReconciler) 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