Documentation
¶
Overview ¶
Package internalapi provides constants and functions used across the boundary among controller, extension server and extproc.
Index ¶
Constants ¶
View Source
const ( // InternalEndpointMetadataNamespace is the namespace used for the dynamic metadata for internal use. InternalEndpointMetadataNamespace = "aigateway.envoy.io" // InternalMetadataBackendNameKey is the key used to store the backend name InternalMetadataBackendNameKey = "per_route_rule_backend_name" )
View Source
const ( // XDSClusterMetadataKey is the key used to access cluster metadata in xDS attributes XDSClusterMetadataKey = "xds.cluster_metadata" // XDSUpstreamHostMetadataKey is the key used to access upstream host metadata in xDS attributes XDSUpstreamHostMetadataKey = "xds.upstream_host_metadata" )
View Source
const ( // AIGatewayGeneratedHTTPRouteAnnotation is the annotation key used to mark // HTTPRoute resources that are generated by the AI Gateway controller. AIGatewayGeneratedHTTPRouteAnnotation = "ai-gateway-generated" )
View Source
const ( // EndpointPickerHeaderKey is the header key used to specify the target backend endpoint. // This is the default header name in the reference implementation: // https://github.com/kubernetes-sigs/gateway-api-inference-extension/blob/2b5b337b45c3289e5f9367b2c19deef021722fcd/pkg/epp/server/runserver.go#L63 EndpointPickerHeaderKey = "x-gateway-destination-endpoint" )
Variables ¶
This section is empty.
Functions ¶
func ParseRequestHeaderLabelMapping ¶
ParseRequestHeaderLabelMapping parses comma-separated key-value pairs for header-to-label mapping. The input format is "header1:label1,header2:label2" where header names are HTTP request headers and label names are Prometheus metric labels. Example: "x-team-id:team_id,x-user-id:user_id".
func PerRouteRuleRefBackendName ¶
func PerRouteRuleRefBackendName(namespace, name, routeName string, routeRuleIndex, refIndex int) string
PerRouteRuleRefBackendName generates a unique backend name for a per-route rule, i.e., the unique identifier for a backend that is associated with a specific route rule in a specific AIGatewayRoute.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.