controller

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: Apache-2.0 Imports: 20 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.3.0"

Variables

View Source
var Version = "dev"

Version set at build time using ldflags

Functions

This section is empty.

Types

type AgentGatewayReconciler

type AgentGatewayReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

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
	// 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

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