proxymode

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package proxymode decides whether the controller runs a Gateway's proxy as a Deployment or the Gateway is self-managed (design §14.3 H5). It mirrors controller logic, so it sits behind Resolver until the controller reports the outcome itself (design §14.6).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GatewayParameters

type GatewayParameters struct{}

GatewayParameters is the upstream Resolver. It follows kgateway's merge (kgateway 556b4ce, pkg/deployer/merge.go and pkg/kgateway/deployer/gateway_parameters.go): the GatewayClass parameters, then the Gateway's infrastructure parameters, where a selfManaged layer wins and a later kube layer does not undo it.

func (GatewayParameters) Resolve

func (GatewayParameters) Resolve(gw *unstructured.Unstructured, snap *cache.Snapshot, served []kinds.Served) Mode

Resolve implements Resolver.

type Mode

type Mode string

Mode is how a Gateway's proxy is run.

const (
	// Managed means the controller deploys the proxy.
	Managed Mode = "managed"
	// SelfManaged means the proxy runs outside the controller's Deployments.
	SelfManaged Mode = "self-managed"
	// Unresolved means the referenced GatewayParameters, or the GatewayClass
	// that names them, could not be resolved. The UI keeps the managed
	// behaviour; kgateway surfaces the problem on the Gateway or its class.
	Unresolved Mode = "unresolved"
)

Modes.

type Resolver

type Resolver interface {
	Resolve(gw *unstructured.Unstructured, snap *cache.Snapshot, served []kinds.Served) Mode
}

Resolver decides the Mode of an owned Gateway from the snapshot.

Jump to

Keyboard shortcuts

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