controller

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupControllers

func SetupControllers(mgr ctrl.Manager, inferenceRelayURL, apiServiceURL, apiInternalToken, defaultRuntimeClass string) error

func SetupRelayController

func SetupRelayController(mgr ctrl.Manager, namespace, routerURL string, enableRelay bool, artifact RelayArtifactConfig) error

SetupRelayController registers the InferenceRelay reconciler and the orphan detector (the periodic safety net that catches cloud VMs whose owner CR has gone away). It is feature-gated and only activated when enableRelay is true.

Types

type RelayArtifactConfig

type RelayArtifactConfig struct {
	// URLs are the base mirror URLs (cloud-init appends "/<binary>"). At least
	// one is required; multiple provide cross-cloud resilience.
	URLs []string
	// SHA256Arm64 is the hex SHA-256 of the arm64 relay-proxy binary.
	SHA256Arm64 string
	// SHA256Amd64 is the hex SHA-256 of the amd64 relay-proxy binary.
	SHA256Amd64 string
}

RelayArtifactConfig holds the relay-proxy binary distribution settings the controller embeds into each relay VM's cloud-init. All fields are required when the relay controller is enabled: a VM without a download path produces a structurally provisioned but non-functional relay (systemd unit references a binary that never arrives).

Jump to

Keyboard shortcuts

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