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 ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.