k8tests

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DummyService added in v0.3.0

func DummyService(name, namespace string, port int32) v1.Service

DummyService returns a dummy service with the specified name in the given namespace, using the provided target port.

func NewClient

func NewClient(t *testing.T, scheme *runtime.Scheme) client.Client

NewClient returns a new Kubernetes client from the configuration available at ~/.kube/config. The test fails if initialization fails.

func NewNamespace

func NewNamespace(ctx context.Context, t *testing.T, client client.Client) (string, func())

NewNamespace returns the (automatically generated) name of a newly created namespace along with a shutdown function. If creating the namespace fails, the test is aborted.

func NewScheme

func NewScheme() *runtime.Scheme

NewScheme returns a newly configured scheme which registers all types that are relevant for Switchboard.

Types

This section is empty.

Jump to

Keyboard shortcuts

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