create

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 ClusterCASecret added in v2.4.0

func ClusterCASecret(t *testing.T, ctx context.Context, cl client.Client, namespace, name string) *corev1.Secret

ClusterCASecret creates a self-signed CA Secret to be used as a cluster CA.

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