setup

package
v1.3.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// DockerRegistry is the default docker registry, which can be passed to the crossplane setup
	DockerRegistry = "index.docker.io"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterAwareFunc added in v1.1.0

type ClusterAwareFunc = func(clusterName string) env.Func

ClusterAwareFunc are functions which create env.Func and have the clusters name as context

type ClusterSetup

type ClusterSetup struct {
	ProviderName       string
	Images             images.ProviderImages
	CrossplaneSetup    CrossplaneSetup
	ControllerConfig   *vendored.ControllerConfig
	ProviderCredential *ProviderCredentials
	AddToSchemaFuncs   []func(s *runtime.Scheme) error

	ProviderConfigDir *string
	// contains filtered or unexported fields
}

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

func (*ClusterSetup) Configure

func (s *ClusterSetup) Configure(testEnv env.Environment, cluster *kind.Cluster) string

Configure optionally creates the kind cluster and takes care about the rest of the setup, There are two relevant Environment Variables that influence its behavior * E2E_REUSE_CLUSTER: if set, the cluster, crossplane and provider will be reused and not deleted after test. If set, CLUSTER_NAME will be ignored * E2E_CLUSTER_NAME: overwrites the cluster name Currently requires a kind.Cluster, only for kind we can detect if a cluster is reusable nolint:interfacer

func (*ClusterSetup) PostCreate added in v1.1.0

func (s *ClusterSetup) PostCreate(funcs ...ClusterAwareFunc)

PostCreate registers ClusterAwareFunc to run after Cluster creation

type CrossplaneSetup added in v1.3.3

type CrossplaneSetup struct {
	Version  string
	Registry string
}

CrossplaneSetup holds configuration specific to the crossplane installation

func (CrossplaneSetup) Options added in v1.3.3

Options returns configurtion as options pattern to be passed on to installation process step

type ProviderCredentials added in v1.3.0

type ProviderCredentials struct {
	SecretData map[string]string
	SecretName *string
}

ProviderCredentials holds the data for a secret to be created in the crossplane namespace

Jump to

Keyboard shortcuts

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