cluster

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind struct {
	// contains filtered or unexported fields
}

func NewKind

func NewKind(kindClusterName, baseDir string, options ...Option) *Kind

NewKind creates a kind cluster given a name and set of Option instances. The base dir must point to the folder where the logs are going to be stored and, in case your docker backend doesn't provide access to the local images, where the cli-e2e-img.tar container image is located. Usually it will be the project root.

func (*Kind) GetAgentLogs added in v0.0.3

func (k *Kind) GetAgentLogs() string

func (*Kind) GetLogsDir added in v0.0.3

func (k *Kind) GetLogsDir() string

func (*Kind) Run

func (k *Kind) Run(m *testing.M)

Run the Kind cluster for the later execution of tests.

func (*Kind) TestEnv

func (k *Kind) TestEnv() env.Environment

type Option

type Option func(k *Kind)

Option that can be passed to the NewKind function in order to change the configuration of the test cluster

Jump to

Keyboard shortcuts

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