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 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).