Documentation
¶
Index ¶
Constants ¶
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 ¶
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 ¶
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.