create

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const PublishServiceName = "publish-svc"

PublishServiceName is the name of the publish service used in Gateway API tests.

Variables

This section is empty.

Functions

func Gateway

Gateway deploys a Gateway, GatewayClass and an ingress service for use in tests.

func GatewayUsingGatewayClass

func GatewayUsingGatewayClass(ctx context.Context, t *testing.T, client client.Client, gwc gatewayapi.GatewayClass) gatewayapi.Gateway

GatewayUsingGatewayClass deploys a Gateway, GatewayClass and an ingress service for use in tests.

func HTTPRoutes

func HTTPRoutes(
	ctx context.Context,
	t *testing.T,
	ctrlClient ctrlclient.Client,
	gw gatewayapi.Gateway,
	numOfRoutes int,
) []*gatewayapi.HTTPRoute

HTTPRoutes creates a number of dummy HTTPRoutes for the given Gateway.

func Namespace

func Namespace(ctx context.Context, t *testing.T, cl client.Client) *corev1.Namespace

Namespace creates namespace using the provided client and returns it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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