controller

package
v0.0.0-...-74321ee Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentController

type AgentController struct {
	Scheme        *runtime.Scheme
	Reconciler    reconciler.KagentReconciler
	AdkTranslator agent_translator.AdkApiTranslator
}

AgentController reconciles a Agent object

func (*AgentController) Reconcile

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

func (*AgentController) SetupWithManager

func (r *AgentController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type AgentHarnessSessionActorCleaner

type AgentHarnessSessionActorCleaner interface {
	DeleteAllAgentHarnessActors(ctx context.Context, ah *v1alpha2.AgentHarness) (bool, error)
}

AgentHarnessSessionActorCleaner deletes the substrate actors spun from an AgentHarness's generated ActorTemplate. Implemented by *substrate.AgentHarnessSessionActorBackend.

type MCPServerToolController

type MCPServerToolController struct {
	Scheme     *runtime.Scheme
	Reconciler reconciler.KagentReconciler
}

MCPServerToolController handles reconciliation of a MCPServer object for tool discovery purposes

func (*MCPServerToolController) Reconcile

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

func (*MCPServerToolController) SetupWithManager

func (r *MCPServerToolController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ModelConfigController

type ModelConfigController struct {
	Scheme     *runtime.Scheme
	Reconciler reconciler.KagentReconciler
}

ModelConfigController reconciles a ModelConfig object

func (*ModelConfigController) Reconcile

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

func (*ModelConfigController) SetupWithManager

func (r *ModelConfigController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ModelProviderConfigController

type ModelProviderConfigController struct {
	Scheme     *runtime.Scheme
	Reconciler reconciler.KagentReconciler
}

ModelProviderConfigController reconciles a ModelProviderConfig object

func (*ModelProviderConfigController) Reconcile

func (*ModelProviderConfigController) SetupWithManager

func (r *ModelProviderConfigController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type RemoteMCPServerController

type RemoteMCPServerController struct {
	Scheme     *runtime.Scheme
	Reconciler reconciler.KagentReconciler
}

RemoteMCPServerController reconciles a RemoteMCPServer object

func (*RemoteMCPServerController) Reconcile

func (*RemoteMCPServerController) SetupWithManager

func (r *RemoteMCPServerController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SandboxAgentController

type SandboxAgentController struct {
	Client                client.Client
	Scheme                *runtime.Scheme
	Reconciler            reconciler.KagentReconciler
	AdkTranslator         agent_translator.AdkApiTranslator
	SubstrateLifecycle    *substrate.Lifecycle
	SubstrateActorBackend *substrate.SandboxAgentActorBackend
}

SandboxAgentController reconciles SandboxAgent objects, which always run on the Agent Substrate platform. Substrate delete cleanup is handled in this controller.

func (*SandboxAgentController) Reconcile

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

func (*SandboxAgentController) SetupWithManager

func (r *SandboxAgentController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type ServiceController

type ServiceController struct {
	Scheme     *runtime.Scheme
	Reconciler reconciler.KagentReconciler
}

ServiceController reconciles a Service object

func (*ServiceController) Reconcile

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

func (*ServiceController) SetupWithManager

func (r *ServiceController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

type SubstrateAgentHarnessController

type SubstrateAgentHarnessController struct {
	Client   client.Client
	Recorder events.EventRecorder
	// Backends maps the harness backend type to its substrate AsyncBackend.
	Backends           map[v1alpha2.AgentHarnessBackendType]sandboxbackend.AsyncBackend
	SubstrateLifecycle substrate.AgentHarnessLifecycle
	// SessionActorBackend manages the shared actor spun from the harness's
	// generated ActorTemplate. The controller uses it only to clean up actors
	// on delete; the shared actor is created on demand by the HTTP gateway on
	// the first chat connect.
	SessionActorBackend AgentHarnessSessionActorCleaner
	// DbClient records each AgentHarness as a row in the shared agent table so
	// that chat sessions resolve through the same agent lookup as regular
	// agents. The row is upserted once the harness is Ready and removed on
	// delete.
	DbClient database.Client
}

SubstrateAgentHarnessController reconciles AgentHarness resources that use the Substrate runtime.

func (*SubstrateAgentHarnessController) Reconcile

func (*SubstrateAgentHarnessController) SetupWithManager

func (r *SubstrateAgentHarnessController) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager registers the Substrate AgentHarness controller with the manager.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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