test

package
v2.17.4 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareOutput

func CompareOutput(t *testing.T, name, output string, update bool, suffix string)

Types

type EndpointsBuilder added in v2.16.3

type EndpointsBuilder struct {
	ObjectBuilder
	// contains filtered or unexported fields
}

EndpointsBuilder is a builder providing a fluent API for v1.Endpoints creation.

func NewEndpointsBuilder added in v2.16.3

func NewEndpointsBuilder(nn NamespacedName) *EndpointsBuilder

NewServiceBuilder returns a ServiceBuilder to be used to build a v1.Endpoints with name and namespace given in input.

func (*EndpointsBuilder) Build added in v2.16.3

func (b *EndpointsBuilder) Build() *corev1.Endpoints

func (*EndpointsBuilder) WithEndpointsSubset added in v2.16.3

func (b *EndpointsBuilder) WithEndpointsSubset() *epsSubsetBuilder

WithEndpointsSubset starts the creation of an Endpoints Subset, the creation must me terminated with a call to DoneWithEndpointSubset, after ports and addresses are added. nolint:golint

func (*EndpointsBuilder) WithResourceVersion added in v2.16.3

func (b *EndpointsBuilder) WithResourceVersion(rs string) *EndpointsBuilder

type NamespacedName added in v2.16.3

type NamespacedName types.NamespacedName

type ObjectBuilder added in v2.16.3

type ObjectBuilder metav1.ObjectMeta

func (*ObjectBuilder) WithAnnotation added in v2.16.3

func (b *ObjectBuilder) WithAnnotation(key, value string) *ObjectBuilder

func (*ObjectBuilder) WithCreationTimestamp added in v2.16.3

func (b *ObjectBuilder) WithCreationTimestamp(time time.Time) *ObjectBuilder

func (*ObjectBuilder) WithLabel added in v2.16.3

func (b *ObjectBuilder) WithLabel(key, value string) *ObjectBuilder

func (*ObjectBuilder) WithResourceVersion added in v2.16.3

func (b *ObjectBuilder) WithResourceVersion(rv string) *ObjectBuilder

type ServiceBuilder added in v2.16.3

type ServiceBuilder struct {
	ObjectBuilder
	// contains filtered or unexported fields
}

ServiceBuilder is a builder providing a fluent API for v1.Service creation.

func NewServiceBuilder added in v2.16.3

func NewServiceBuilder(nn NamespacedName) *ServiceBuilder

NewServiceBuilder returns a ServiceBuilder to be used to build a v1.Service with name and namespace given in input.

func (ServiceBuilder) Build added in v2.16.3

func (b ServiceBuilder) Build() *corev1.Service

func (*ServiceBuilder) WithAnnotation added in v2.16.3

func (b *ServiceBuilder) WithAnnotation(key, value string) *ServiceBuilder

func (*ServiceBuilder) WithCreationTimestamp added in v2.16.3

func (b *ServiceBuilder) WithCreationTimestamp(time time.Time) *ServiceBuilder

func (*ServiceBuilder) WithLabel added in v2.16.3

func (b *ServiceBuilder) WithLabel(key, value string) *ServiceBuilder

func (*ServiceBuilder) WithSelector added in v2.16.3

func (b *ServiceBuilder) WithSelector(selector map[string]string) *ServiceBuilder

func (*ServiceBuilder) WithServicePort added in v2.16.3

func (b *ServiceBuilder) WithServicePort(
	name string,
	port int32,
	nodePort int32,
	targetPort intstr.IntOrString,
	protocol corev1.Protocol) *ServiceBuilder

func (*ServiceBuilder) WithServicePorts added in v2.16.3

func (b *ServiceBuilder) WithServicePorts(sp ...corev1.ServicePort) *ServiceBuilder

func (*ServiceBuilder) WithServiceType added in v2.16.3

func (b *ServiceBuilder) WithServiceType(serviceType corev1.ServiceType) *ServiceBuilder

Jump to

Keyboard shortcuts

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