controller

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const AgentGatewayKrakendControllerName = "runtime.agentic-layer.ai/agent-gateway-krakend-controller"
View Source
const DefaultGatewayPort = 8080
View Source
const Image = "ghcr.io/agentic-layer/agent-gateway-krakend:0.6.1"

Variables

View Source
var Version = "dev"

Version set at build time using ldflags

Functions

This section is empty.

Types

type AgentConfigInfo added in v0.5.0

type AgentConfigInfo struct {
	// ModelID is the unique identifier for the model (format: namespace/name)
	ModelID string
	// URL is the agent backend URL
	URL string
	// OwnedBy indicates the owner/namespace of the model
	OwnedBy string
	// CreatedAt is the Unix timestamp of agent creation
	CreatedAt int64
}

AgentConfigInfo holds agent information for the KrakenD config template

type AgentGatewayReconciler

type AgentGatewayReconciler struct {
	client.Client
	Scheme   *runtime.Scheme
	Recorder kevents.EventRecorder
}

AgentGatewayReconciler reconciles a AgentGateway object

func (*AgentGatewayReconciler) Reconcile

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

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

SetupWithManager sets up the controller with the Manager.

type KrakendBackend

type KrakendBackend struct {
	// Host defines the agents host addresses
	Host []string `json:"host"`
	// URLPattern specifies the path the agent is called at
	URLPattern string `json:"url_pattern"`
}

KrakendBackend represents a backend configuration in KrakenD

type KrakendConfigData

type KrakendConfigData struct {
	// Port specifies the server port number
	Port int32
	// Timeout defines the request timeout duration
	Timeout string
	// PluginNames contains ordered list of plugin handler names
	PluginNames []string
	// Endpoints contains all configured API endpoints
	Endpoints []KrakendEndpoint
	// Agents contains all exposed agents for the openai-a2a plugin config
	Agents []AgentConfigInfo
	// ServiceVersion is the Docker image path used to identify the service version
	ServiceVersion string
	// DeploymentName is the name of the deployment
	DeploymentName string
	// OtelCollectorHost is the hostname of the OpenTelemetry collector
	OtelCollectorHost string
	// OtelCollectorPort is the port of the OpenTelemetry collector
	OtelCollectorPort string
}

KrakendConfigData holds the data for template execution

type KrakendEndpoint

type KrakendEndpoint struct {
	// Endpoint defines the API endpoint path
	Endpoint string `json:"endpoint"`
	// OutputEncoding specifies the response encoding format
	OutputEncoding string `json:"output_encoding"`
	// Method defines the HTTP method for this endpoint
	Method string `json:"method"`
	// Backend contains the backend configuration for this endpoint
	Backend []KrakendBackend `json:"backend"`
}

KrakendEndpoint represents an endpoint configuration in KrakenD

type ReferencedResource added in v0.6.0

type ReferencedResource struct {
	Name      string
	Namespace string
	Kind      string // "ConfigMap" or "Secret"
}

ReferencedResource represents a ConfigMap or Secret referenced in the deployment

Directories

Path Synopsis
Package testutil provides common test utilities and helper functions for controller tests.
Package testutil provides common test utilities and helper functions for controller tests.

Jump to

Keyboard shortcuts

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