test

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEndpointSlice added in v0.5.0

func GetEndpointSlice(nsName types.NamespacedName, svcName string) *discoveryv1.EndpointSlice

GetEndpointSlice returns a sample EndpointSlice.

func GetEnvoyProxy added in v1.0.0

func GetEnvoyProxy(nsName types.NamespacedName, mergeGateways bool) *egv1a1.EnvoyProxy

GetEnvoyProxy returns an EnvoyProxy object with the provided ns/name.

func GetGRPCRoute

func GetGRPCRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName, port int32) *gwapiv1.GRPCRoute

GetGRPCRoute returns a sample GRPCRoute with a parent reference.

func GetGateway

func GetGateway(nsName types.NamespacedName, gwclass string, listenerPort int32) *gwapiv1.Gateway

GetGateway returns a sample Gateway with single listener.

func GetGatewayClass

func GetGatewayClass(name string, controller gwapiv1.GatewayController, envoyProxy *GroupKindNamespacedName) *gwapiv1.GatewayClass

GetGatewayClass returns a sample GatewayClass.

func GetGatewayDaemonSet added in v1.2.0

func GetGatewayDaemonSet(nsName types.NamespacedName, labels map[string]string) client.Object

GetGatewayDaemonSet returns a sample DaemonSet for a Gateway object.

func GetGatewayDeployment

func GetGatewayDeployment(nsName types.NamespacedName, labels map[string]string) client.Object

GetGatewayDeployment returns a sample Deployment for a Gateway object.

func GetHTTPRoute

func GetHTTPRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName, port int32, httpRouteFilterName string) *gwapiv1.HTTPRoute

GetHTTPRoute returns a sample HTTPRoute with a parent reference.

func GetHTTPRouteFilter added in v1.2.0

func GetHTTPRouteFilter(nsName types.NamespacedName) *egv1a1.HTTPRouteFilter

GetHTTPRouteFilter returns a sample Service with labels and ports.

func GetSecret

func GetSecret(nsName types.NamespacedName) *corev1.Secret

GetSecret returns a sample Secret object.

func GetSecureGateway

func GetSecureGateway(nsName types.NamespacedName, gwclass string, secretKindNSName GroupKindNamespacedName) *gwapiv1.Gateway

GetSecureGateway returns a sample Gateway with single TLS listener.

func GetService

func GetService(nsName types.NamespacedName, labels map[string]string, ports map[string]int32) *corev1.Service

GetService returns a sample Service with labels and ports.

func GetTCPRoute

func GetTCPRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName, port int32) *gwapiv1a2.TCPRoute

GetTCPRoute returns a sample TCPRoute with a parent reference.

func GetTLSRoute

func GetTLSRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName, port int32) *gwapiv1a2.TLSRoute

GetTLSRoute returns a sample TLSRoute with a parent reference.

func GetUDPRoute

func GetUDPRoute(nsName types.NamespacedName, parent string, serviceName types.NamespacedName, port int32) *gwapiv1a2.UDPRoute

GetUDPRoute returns a sample UDPRoute with a parent reference.

Types

type GroupKindNamespacedName added in v1.0.0

type GroupKindNamespacedName struct {
	Group     gwapiv1.Group
	Kind      gwapiv1.Kind
	Namespace gwapiv1.Namespace
	Name      gwapiv1.ObjectName
}

Jump to

Keyboard shortcuts

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