controller

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LazymcConfig added in v0.7.0

type LazymcConfig struct {
	PublicPort  int32
	ServerPort  int32
	Command     string
	SleepAfter  int32
	RconEnabled bool
	RconPort    int32
}

LazymcConfig holds configuration for lazymc template rendering.

type MinecraftReconciler

type MinecraftReconciler struct {
	client.Client
	// contains filtered or unexported fields
}

MinecraftReconciler reconciles a Minecraft object.

func NewMinecraftReconciler

func NewMinecraftReconciler(
	client client.Client,
	log logr.Logger,
	scheme *runtime.Scheme,
	initImageName, agentImageName string,
	minecraftManager minecraft.MinecraftManager,
) *MinecraftReconciler

NewMinecraftReconciler returns a new MinecraftReconciler.

func (*MinecraftReconciler) Reconcile

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

Reconcile implements Reconciler interface. See https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.8.3/pkg/reconcile

func (*MinecraftReconciler) SetupWithManager

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