controllers

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: AGPL-3.0 Imports: 37 Imported by: 0

Documentation

Overview

internal/controllers/manager.go

internal/controllers/mcpmemory_controller.go

internal/controllers/mcppostgres_controller.go

internal/controllers/mcpserver_controller.go

internal/controllers/mcptaskscheduler_controller.go

internal/controllers/mcptoolbox_controller.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerManager

type ControllerManager struct {
	// contains filtered or unexported fields
}

ControllerManager manages all MCP controllers

func NewControllerManager

func NewControllerManager(namespace string, cfg *config.ComposeConfig) (*ControllerManager, error)

NewControllerManager creates a new controller manager

func StartControllerManagerInBackground

func StartControllerManagerInBackground(namespace string, cfg *config.ComposeConfig) (*ControllerManager, error)

StartControllerManagerInBackground starts the controller manager in a separate goroutine

func (*ControllerManager) GetClient

func (cm *ControllerManager) GetClient() client.Client

GetClient returns the controller manager's Kubernetes client

func (*ControllerManager) IsReady

func (cm *ControllerManager) IsReady() bool

IsReady checks if the controller manager is ready

func (*ControllerManager) Start

func (cm *ControllerManager) Start(ctx context.Context) error

Start starts the controller manager

func (*ControllerManager) Stop

func (cm *ControllerManager) Stop() error

Stop stops the controller manager

type MCPMemoryReconciler

type MCPMemoryReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Logger *logging.Logger
	Config *config.ComposeConfig
}

MCPMemoryReconciler reconciles a MCPMemory object

func (*MCPMemoryReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*MCPMemoryReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type MCPPostgresReconciler

type MCPPostgresReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

MCPPostgresReconciler reconciles a MCPPostgres object

func (*MCPPostgresReconciler) Reconcile

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

func (*MCPPostgresReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager

type MCPProxyReconciler

type MCPProxyReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Logger *logging.Logger

	// Enhanced service discovery integration
	ServiceDiscovery  *discovery.K8sServiceDiscovery
	ConnectionManager *discovery.DynamicConnectionManager

	// Configuration for reliability features
	MaxRetries     int
	RetryDelay     time.Duration
	CircuitBreaker bool
	HealthInterval time.Duration
}

MCPProxyReconciler reconciles a MCPProxy object

func (*MCPProxyReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*MCPProxyReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type MCPServerReconciler

type MCPServerReconciler struct {
	client.Client
	Scheme            *runtime.Scheme
	ServiceDiscovery  *discovery.K8sServiceDiscovery
	ConnectionManager *discovery.DynamicConnectionManager
	Config            *config.ComposeConfig
}

MCPServerReconciler reconciles MCPServer objects

func (*MCPServerReconciler) Reconcile

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

Reconcile handles MCPServer resource reconciliation

func (*MCPServerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager

type MCPTaskSchedulerReconciler

type MCPTaskSchedulerReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Logger *logging.Logger
	Config *config.ComposeConfig
	// contains filtered or unexported fields
}

MCPTaskSchedulerReconciler reconciles a MCPTaskScheduler object

func (*MCPTaskSchedulerReconciler) Reconcile

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state.

func (*MCPTaskSchedulerReconciler) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type MCPToolboxReconciler

type MCPToolboxReconciler struct {
	client.Client
	Scheme *runtime.Scheme
	Config *config.ComposeConfig
}

MCPToolboxReconciler reconciles MCPToolbox objects

func (*MCPToolboxReconciler) Reconcile

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

Reconcile handles MCPToolbox resource reconciliation

func (*MCPToolboxReconciler) SetupWithManager

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