nodeportproxy

package
v2.26.2 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgnhostImage = "registry.k8s.io/e2e-test-images/agnhost:2.21"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DialConfig added in v2.22.0

type DialConfig struct {
	TargetIP           string
	TargetPort         int
	HTTPS              bool
	ExtraCurlArguments []string
}

type ServiceJig

type ServiceJig struct {
	Log       *zap.SugaredLogger
	Client    ctrlruntimeclient.Client
	Namespace string
}

Based on: https://github.com/mgdevstack/kubernetes/blob/9eced040142454a20255ae323279a38dc6b2bc1a/test/e2e/framework/service/jig.go#L60 ServiceJig is a jig to help service testing.

func (*ServiceJig) Cleanup added in v2.22.0

func (j *ServiceJig) Cleanup(ctx context.Context) error

Cleanup removes the resources.

func (*ServiceJig) CreateServiceWithPods

func (j *ServiceJig) CreateServiceWithPods(ctx context.Context, svc *corev1.Service, numPods int32, https bool) (*corev1.Service, []string, error)

CreateServiceWithPods deploys a service and the associated pods, returning the created service and the names of all pods that act as endpoints for the service.

Jump to

Keyboard shortcuts

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