clusters

package
v0.0.0-...-5cbd3cb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanupBehavior

type CleanupBehavior string
const (
	CleanupDetach CleanupBehavior = "detach"
	CleanupDelete CleanupBehavior = "delete"
)

string mapping

type ClusterSetup

type ClusterSetup interface {
	// Create a cluster
	Add(name string, labels map[string]string) error
	// Wait for all clusters to become ready
	PrepareAndWait(ctx context.Context, timeout time.Duration) error
	// Cleanup deletes all clusters
	Cleanup(ctx context.Context) error
	// Get Cluster Reference
	GetClusterRefs() []map[string]interface{}
}

func GetClusterSetup

func GetClusterSetup(t *testing.T, c client.Client, cfg ...Config) (ClusterSetup, error)

func NewKindSetup

func NewKindSetup(t *testing.T, c client.Client, cfgs ...Config) (ClusterSetup, error)

type Config

type Config struct {
	Count  int
	Prefix string
	Labels map[string]string
}

Jump to

Keyboard shortcuts

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