Documentation ¶
Index ¶
- Constants
- func ApplyProviderConfig(ctx context.Context, cfg *envconf.Config) (context.Context, error)
- func ApplySecretInCrossplaneNamespace(name string, data map[string]string) env.Func
- func AwaitCRDsEstablished(ctx context.Context, cfg *envconf.Config) (context.Context, error)
- func Compose(envfuncs ...env.Func) env.Func
- func Conditional(fn env.Func, condition bool) env.Func
- func CreateTestNamespace(ctx context.Context, cfg *envconf.Config) (context.Context, error)
- func DeleteTestNamespace(ctx context.Context, cfg *envconf.Config) (context.Context, error)
- func DumpKindLogs(clusterName string) env.Func
- func DumpKubernetesLogs(ctx context.Context, identifier string) (context.Context, error)
- func IgnoreErr(fn env.Func) env.Func
- func InstallCrossplane(clusterName string) env.Func
- func InstallCrossplaneProvider(clusterName string, opts InstallCrossplaneProviderOptions) env.Func
- func LoadSchemas(addToSchemaFuncs ...func(s *runtime.Scheme) error) env.Func
- func SetClusterName(clusterName string) env.Func
- type InstallCrossplaneProviderOptions
Constants ¶
const (
// CrossplaneNamespace the namespace crossplane will be installed to
CrossplaneNamespace = "crossplane-system"
)
Variables ¶
This section is empty.
Functions ¶
func ApplyProviderConfig ¶
ApplyProviderConfig applys the files from `./data/provider` and mutates their namespace
func ApplySecretInCrossplaneNamespace ¶
ApplySecretInCrossplaneNamespace creates secret that is used by providers in the crossplane namespace
func AwaitCRDsEstablished ¶
AwaitCRDsEstablished waits until all CRDs do have a condition `Established` == true
func Conditional ¶
Conditional executes a fn based on conditional
func CreateTestNamespace ¶
CreateTestNamespace Creates the test namespace, name comes from kubernetes-e2e
func DeleteTestNamespace ¶
DeleteTestNamespace Deletes the test namespace, name comes from kubernetes-e2e
func DumpKindLogs ¶
DumpKindLogs Dumps the logs of the cluster to `$PWD/logs` using kind export func
func DumpKubernetesLogs ¶
DumpKubernetesLogs Dumps the logs of the cluster to `$PWD/logs-$identifier` using kind export func
func InstallCrossplane ¶
InstallCrossplane returns an env.Func that is used to install crossplane into the given cluster
func InstallCrossplaneProvider ¶
func InstallCrossplaneProvider(clusterName string, opts InstallCrossplaneProviderOptions) env.Func
InstallCrossplaneProvider returns an env.Func that is used to install a crossplane provider into the active cluster
func LoadSchemas ¶
LoadSchemas prepares the kubernetes client with additional schemas
func SetClusterName ¶
SetClusterName Sets the name of the cluster into context to retrieve it by other functions
Types ¶
type InstallCrossplaneProviderOptions ¶
type InstallCrossplaneProviderOptions struct { Name string Package string ControllerImage *string // TODO read from package ControllerConfig *v1alpha1.ControllerConfig }
InstallCrossplaneProviderOptions hols information on the tested provider