sandbox

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 38 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPackages = []string{
	"gnused",
	"gawk",
	"gnugrep",
	"bc",
	"jq",
	"yq-go",
	"curl",
	"mcporter",
	"python3",
	"nodejs",
}

DefaultPackages are always present in every Sandbox package list.

Functions

func DefaultPackagesForWebhook

func DefaultPackagesForWebhook(names []string) []string

DefaultPackagesForWebhook adds required packages and removes duplicate names. Admission and reconciliation share this list so existing Sandboxes receive newly required packages even before their specs are updated.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Scheme                 *runtime.Scheme
	AgentGateway           agentgatewayclientset.Interface
	TraceBackend           TraceBackend
	InferenceMaxBufferSize *agentgatewayv1alpha1.ByteSize
	GuardrailStoreName     string
}

Reconciler reconciles Sandbox lifecycle protection and MCP runtime.

func (*Reconciler) Reconcile

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

Reconcile prevents unsafe deletion and manages namespace MCP runtime.

func (*Reconciler) SetupWithManager

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

SetupWithManager sets up the Sandbox controller with the Manager.

type TraceBackend

type TraceBackend struct {
	Mode             TraceBackendMode
	ServiceName      string
	ServiceNamespace string
	ServicePort      gwv1.PortNumber
	Host             string
	Port             gwv1.PortNumber
}

TraceBackend configures the AgentGateway OTLP destination.

func ParseTraceBackend

func ParseTraceBackend(mode string, svcName string, svcNS string, svcPort int, host string, port int) (TraceBackend, error)

ParseTraceBackend builds trace backend config from explicit manager flags.

func (TraceBackend) BackendRef added in v0.30.0

func (c TraceBackend) BackendRef(name string) *gwv1.BackendObjectReference

BackendRef identifies the configured collector from a gateway namespace.

func (TraceBackend) Egress added in v0.30.0

func (c TraceBackend) Egress() []ciliumapi.EgressRule

Egress permits only the configured collector's destination and port.

func (TraceBackend) Validate

func (c TraceBackend) Validate() error

Validate rejects incomplete or conflicting trace backend configuration.

type TraceBackendMode

type TraceBackendMode string

TraceBackendMode selects how AgentGateway exports traces.

const (
	// TraceBackendModeService routes MCP traces to a Kubernetes Service.
	TraceBackendModeService TraceBackendMode = "service"
	// TraceBackendModeStatic routes MCP traces to a static host or IP.
	TraceBackendModeStatic TraceBackendMode = "static"
)

Jump to

Keyboard shortcuts

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