gwapi

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const BundleVersionAnnotation = "gateway.networking.k8s.io/bundle-version"

BundleVersionAnnotation is the annotation key used by Gateway API CRDs to indicate the bundle version.

Variables

View Source
var SupportedVersions = []string{"v1.3.0", "v1.4.0", "v1.5.0"}

SupportedVersions lists all embedded Gateway API versions.

Functions

func Get

func Get(version string) ([]byte, error)

Get returns the embedded experimental Gateway API CRD YAML for the given version. The version can be specified with or without the "v" prefix (e.g., "1.3.0" or "v1.3.0"). The embedded data is gzip-compressed and decompressed on the fly.

func WriteCRDsToDir

func WriteCRDsToDir(version, dir string) error

WriteCRDsToDir decompresses the embedded GWAPI CRDs for the given version and writes each YAML document as a separate file in dir. This is useful for envtest which needs a directory of individual CRD files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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