testserver

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Install

func Install(fn ...DeploymentOptsFn) framework.InstallFunc

Types

type Deployment

type Deployment interface {
	framework.Deployment
	TestServer
}

type DeploymentOpts

type DeploymentOpts struct {
	Name              string
	Namespace         string
	Mesh              string
	ReachableServices []string
	WithStatefulSet   bool
	ServiceAccount    string

	Replicas         int32
	WaitingToBeReady bool
	EnableProbes     bool
	PodAnnotations   map[string]string
	NodeSelector     map[string]string
	// contains filtered or unexported fields
}

func DefaultDeploymentOpts

func DefaultDeploymentOpts() DeploymentOpts

type DeploymentOptsFn

type DeploymentOptsFn = func(*DeploymentOpts)

func WithEchoArgs

func WithEchoArgs(args ...string) DeploymentOptsFn

func WithHealthCheckTCPArgs

func WithHealthCheckTCPArgs(args ...string) DeploymentOptsFn

func WithMesh

func WithMesh(mesh string) DeploymentOptsFn

func WithName

func WithName(name string) DeploymentOptsFn

func WithNamespace

func WithNamespace(namespace string) DeploymentOptsFn

func WithPodAnnotations

func WithPodAnnotations(annotations map[string]string) DeploymentOptsFn

func WithReachableServices

func WithReachableServices(services ...string) DeploymentOptsFn

func WithReplicas

func WithReplicas(n int32) DeploymentOptsFn

func WithServiceAccount

func WithServiceAccount(serviceAccountName string) DeploymentOptsFn

func WithStatefulSet

func WithStatefulSet(apply bool) DeploymentOptsFn

func WithoutProbes

func WithoutProbes() DeploymentOptsFn

func WithoutWaitingToBeReady

func WithoutWaitingToBeReady() DeploymentOptsFn

type TestServer

type TestServer interface {
}

Jump to

Keyboard shortcuts

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