gatewayapi

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractGatewayKeys

func ExtractGatewayKeys(gvk schema.GroupVersionKind, route *gatewayapisv1.HTTPRoute) []client.ObjectKey

ExtractGatewayKeys extracts the gateway keys from the given HTTPRoute resource

func GetDNSSpecInput

func GetDNSSpecInput[T client.Object](ctx context.Context, r *common.SourceReconciler[T], gatewayObj client.Object) (*common.DNSSpecInput, error)

GetDNSSpecInput constructs a DNSSpecInput from the given Gateway resource.

func GetGVKV1

func GetGVKV1() schema.GroupVersionKind

GetGVKV1 returns the GroupVersionKind for Gateway API v1 Gateway resource.

func GetGVKV1beta1

func GetGVKV1beta1() schema.GroupVersionKind

GetGVKV1beta1 returns the GroupVersionKind for Gateway API v1beta1 Gateway resource.

Types

type APIVersion

type APIVersion string

APIVersion represents the Gateway API version.

const (
	// V1Beta1 represents Gateway API v1beta1.
	V1Beta1 APIVersion = "v1beta1"
	// V1 represents Gateway API v1.
	V1 APIVersion = "v1"
)

func DetermineAPIVersion

func DetermineAPIVersion(dc discovery.DiscoveryInterface) (*APIVersion, error)

DetermineAPIVersion determines the Gateway API version supported by the API server. It prefers v1 over v1beta1 if both are available and returns nil if neither is supported.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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