compat

package
v0.8.1 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: 16 Imported by: 0

Documentation

Overview

Package compat smoke-tests a running core-only build against any Gateway API controller (Phase 5 design §12.1). The `compat`-tagged test reads COMPAT_CONTROLLER, COMPAT_GATEWAY, COMPAT_ROUTE, COMPAT_UI_URL and COMPAT_DEFAULT_UI_URL (see Env).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(ctx context.Context, c *http.Client, e Env) []error

Check makes one pass over the assertions of design §12.1 and returns every failure.

func Settle

func Settle(ctx context.Context, c *http.Client, e Env, timeout, every time.Duration) []error

Settle runs Check every `every` until it passes or timeout ends, and returns the last complete pass's errors.

Types

type Env

type Env struct {
	Controller   string // COMPAT_CONTROLLER: the GatewayClass controllerName
	Gateway      string // COMPAT_GATEWAY
	Route        string // COMPAT_ROUTE
	UIURL        string // COMPAT_UI_URL: the core-only build
	DefaultUIURL string // COMPAT_DEFAULT_UI_URL: the default build, class-only installs off
}

Env is the smoke test's input. Gateway and Route are "namespace/name"; the route is an HTTPRoute.

func EnvFromOS

func EnvFromOS() (Env, error)

EnvFromOS reads Env from COMPAT_* variables; every one is required.

Jump to

Keyboard shortcuts

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