kgateway

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Overview

Package kgateway holds the parts of the kgateway pack: its kinds, detector, checks and per-install hooks. pkg/extension assembles them into the pack that extension.New adds to the core; this package does not import it.

Index

Constants

View Source
const Name = "kgateway"

Name is the pack name, stamped on each install its detector claims.

Variables

This section is empty.

Functions

func BackendConsumers added in v0.7.0

func BackendConsumers(_ install.Install, owned *install.Owned) []objects.Consumer

BackendConsumers lists the backends the install's GatewayExtensions use, in listed order, one per backendRef that names a backend.

func Checks

func Checks() []health.Check

Checks returns the kgateway checks.

func Claimed

func Claimed(insts []install.Install, pack string) []install.Install

Claimed keeps the installs whose Impl is pack.

func Conditions

func Conditions() health.ConditionTypes

Conditions are kgateway's route condition types beyond Gateway API's.

func Detector

func Detector() install.Detector

Detector returns the upstream kgateway controller detector.

func ExperimentalOnly

func ExperimentalOnly(k kinds.Served, i install.Install) bool

ExperimentalOnly reports whether the install's controller watches k only with experimental Gateway API features on, from the table in pkg/kinds.

func Features

func Features() []string

Features are the kgateway pack's UI features, named as api.Feature* names them.

func Kinds

func Kinds() []kinds.Descriptor

Kinds returns kgateway's own kinds (group gateway.kgateway.dev), in the order of kinds.Upstream.

func LatestStats

func LatestStats(store *collect.Store) (proxystats.Stats, ctrllogs.StatsState)

LatestStats is the proxy stats value in store for the log collector: pending until the first value lands, so the backfill meets its names.

func ProxyMode

func ProxyMode() proxymode.Resolver

ProxyMode returns the GatewayParameters resolution of self-managed proxies.

func Reported

func Reported(i install.Install, col collect.Snapshot) (string, bool)

Reported is the version the install's controller reports in kgateway_build_info, read from the controller metrics value in col.

func RulesFor

func RulesFor(version string) computed.Selection

RulesFor selects the computed rule set for a kgateway version.

func Scope

func Scope() install.ScopeProvider

Scope returns the scope provider that reads kgateway's discoveryNamespaceSelectors.

func Settings

func Settings(i install.Install) install.Settings

Settings reads the controller's KGW_* settings.

func Version

func Version(i install.Install) string

Version is the kgateway version that picks the rule set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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