controller

package
v0.25.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAgentRuntime added in v0.14.2

func RegisterAgentRuntime()

RegisterAgentRuntime is called from controller main to register the opencode agent runtime. The actual opencode.Register() call happens in the controller main package (the allowed construction layer).

func SetupControllers

func SetupControllers(mgr ctrl.Manager, inferenceRelayURL, apiServiceURL, apiInternalToken, defaultRuntimeClass, previewOriginBaseDomain string, agentdDelivery AgentdDelivery, agentdSidecarEnabled bool) 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 AgentdDelivery added in v0.15.8

type AgentdDelivery = workspace.AgentdDeliveryConfig

AgentdDelivery is the #863 image-volume agentd delivery configuration. Zero value (empty Image) = legacy baked-in mode. When set, every workspace pod gets a digest-pinned image volume + RO mount + sha256 verify pins; validateAgentdDeliveryConfig enforces the all-or-nothing contract at startup.

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