Documentation
¶
Overview ¶
Package kubernetes provides a Kubernetes controller that watches MCPServer resources and syncs them to the registry. It includes utilities for converting Kubernetes MCPServer, VirtualMCPServer, and MCPRemoteProxy resources to the MCP registry ServerJSON format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MCPServerReconciler ¶
type MCPServerReconciler struct {
// contains filtered or unexported fields
}
MCPServerReconciler reconciles MCPServer objects
func (*MCPServerReconciler) 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 (*MCPServerReconciler) SetupWithManager ¶
func (r *MCPServerReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type Option ¶
type Option func(*mcpServerReconcilerOptions) error
Option is a function that sets an option for the MCPServerReconciler.
func WithNamespaces ¶
WithNamespaces sets the namespaces to watch.
func WithRegistryName ¶
WithRegistryName sets the registry name. This is used to identify the registry in the sync writer.
func WithRequeueAfter ¶
WithRequeueAfter sets the requeue after duration.
func WithSyncWriter ¶
func WithSyncWriter(sw writer.SyncWriter) Option
WithSyncWriter sets the sync writer.