setup

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEnvVarExists

func CheckEnvVarExists(existsKey string) bool

CheckEnvVarExists returns if a environment variable exists

Types

type ClusterSetup

type ClusterSetup struct {
	Name             string
	Images           images.ProviderImages
	ControllerConfig v1alpha1.ControllerConfig
	SecretData       map[string]string
	AddToSchemaFuncs []func(s *runtime.Scheme) error
}

ClusterSetup help with a default kind setup for crossplane, with crossplane and a provider

func (*ClusterSetup) Run

func (s *ClusterSetup) Run(testEnv env.Environment)

Run optionally creates the kind cluster and takes care about the rest of the setup, There are two relevant Environment Variables that influence its behavior * TEST_REUSE_CLUSTER: if set, the cluster, crossplane and provider will be reused and not deleted after test. If set, CLUSTER_NAME will be ignored * TESTCLUSTER_NAME: overwrites the cluster name

Jump to

Keyboard shortcuts

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