rulesets

package
v0.7.0-alpha.1 Latest Latest
Warning

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

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

Documentation

Overview

Package rulesets selects the computed rule set for a controller version (rules §2). It is apart from computed so the sets can import computed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectedGatewayAPI

func ExpectedGatewayAPI(kgatewayMinor string) (bundle string, ok bool)

ExpectedGatewayAPI returns the Gateway API bundle minor ("v1.6") kgateway kgatewayMinor ("2.4") is built against; false for a minor without a row.

func GatewayCRDHasAllowedListeners

func GatewayCRDHasAllowedListeners(channel, bundle string) (has, known bool)

GatewayCRDHasAllowedListeners reports whether a Gateway CRD of channel and bundle defines spec.allowedListeners (experimental from v1.3, standard from v1.5); known is false otherwise.

func IsVersion

func IsVersion(v string) bool

IsVersion reports whether Select reads v as a version, not as unknown.

func Select

func Select(controllerVersion string) computed.Selection

Select returns the rule set for a kgateway controller version. An unknown, newer or older version gets the nearest set, labelled in Note; an unknown one gets the newest (D-058).

Types

This section is empty.

Jump to

Keyboard shortcuts

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