helpers

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClusterctlLocalRepository added in v1.1.0

func CreateClusterctlLocalRepository(config *clusterctl.E2EConfig, repositoryFolder string, cniEnabled bool) (string, error)

func InitBootstrapCluster added in v1.1.0

func InitBootstrapCluster(bootstrapClusterProxy framework.ClusterProxy, config *clusterctl.E2EConfig, clusterctlConfig, artifactFolder string)

func LoadE2EConfig added in v1.1.0

func LoadE2EConfig(configPath string) (*clusterctl.E2EConfig, error)

func SetupBootstrapCluster added in v1.1.0

func SetupBootstrapCluster(config *clusterctl.E2EConfig, scheme *runtime.Scheme, useExistingCluster bool) (bootstrap.ClusterProvider, framework.ClusterProxy, error)

func TearDown added in v1.1.0

func TearDown(bootstrapClusterProvider bootstrap.ClusterProvider, bootstrapClusterProxy framework.ClusterProxy)

Types

type Mod added in v1.1.0

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

func NewMod added in v1.1.0

func NewMod(path string) (Mod, error)

func (Mod) FindDependencyVersion added in v1.1.0

func (m Mod) FindDependencyVersion(dependency string) (string, error)

type TestEnvironment

type TestEnvironment struct {
	manager.Manager
	client.Client
	Config    *rest.Config
	Simulator *vcsim.Simulator
	// contains filtered or unexported fields
}

TestEnvironment encapsulates a Kubernetes local test environment.

func NewTestEnvironment

func NewTestEnvironment() *TestEnvironment

NewTestEnvironment creates a new environment spinning up a local api-server.

func (*TestEnvironment) Cleanup added in v0.7.9

func (t *TestEnvironment) Cleanup(ctx goctx.Context, objs ...client.Object) error

func (*TestEnvironment) CreateKubeconfigSecret added in v0.7.9

func (t *TestEnvironment) CreateKubeconfigSecret(ctx goctx.Context, cluster *clusterv1.Cluster) error

func (*TestEnvironment) CreateNamespace added in v0.7.9

func (t *TestEnvironment) CreateNamespace(ctx goctx.Context, generateName string) (*corev1.Namespace, error)

func (*TestEnvironment) StartManager

func (t *TestEnvironment) StartManager(ctx goctx.Context) error

func (*TestEnvironment) Stop

func (t *TestEnvironment) Stop() error

func (*TestEnvironment) WaitForWebhooks

func (t *TestEnvironment) WaitForWebhooks()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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