Documentation
¶
Index ¶
- func ExtractGatewayKeys(gvk schema.GroupVersionKind, route *gatewayapisv1.HTTPRoute) []client.ObjectKey
- func GetDNSSpecInput[T client.Object](ctx context.Context, r *common.SourceReconciler[T], gatewayObj client.Object) (*common.DNSSpecInput, error)
- func GetGVKV1() schema.GroupVersionKind
- func GetGVKV1beta1() schema.GroupVersionKind
- type APIVersion
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.
Click to show internal directories.
Click to hide internal directories.