Documentation
¶
Index ¶
- Constants
- func ApplyProviderConfigFromDir(dir string) env.Func
- 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 DumpLogs(clusterName string, dir string) env.Func
- func IgnoreErr(fn env.Func) env.Func
- func IgnoreMatchedErr(fn env.Func, errorMatcher func(err error) bool) env.Func
- func InstallCrossplane(clusterName string, opts ...CrossplaneOpt) env.Func
- func InstallCrossplaneProvider(clusterName string, opts InstallCrossplaneProviderOptions) env.Func
- func LoadSchemas(addToSchemaFuncs ...func(s *runtime.Scheme) error) env.Func
- func SimpleSecret(name string, namespace string, stringData map[string]string) *corev1.Secret
- type CrossplaneOpt
- type InstallCrossplaneProviderOptions
Constants ¶
const (
// CrossplaneNamespace the namespace crossplane will be installed to
CrossplaneNamespace = "crossplane-system"
)
Variables ¶
This section is empty.
Functions ¶
func ApplyProviderConfigFromDir ¶ added in v1.3.0
ApplyProviderConfigFromDir applies the files from given folder 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 DumpLogs ¶ added in v1.1.0
DumpLogs Dumps the logs of the cluster to `$PWD/logs` using kind export func
func IgnoreMatchedErr ¶
IgnoreMatchedErr checks if a result of fn() returns an error and if the error matches result of errorMatcher() ignores the error to continue with execution
func InstallCrossplane ¶
func InstallCrossplane(clusterName string, opts ...CrossplaneOpt) env.Func
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
Types ¶
type CrossplaneOpt ¶ added in v1.3.3
CrossplaneOpt Option alias for configuring aspects of crossplane installation
func Registry ¶ added in v1.3.3
func Registry(registry string) CrossplaneOpt
Registry configures the registry crossplane uses by adding it to the args values
func Version ¶ added in v1.3.3
func Version(version string) CrossplaneOpt
Version configures the version of crossplane to be installed
type InstallCrossplaneProviderOptions ¶
type InstallCrossplaneProviderOptions struct { Name string Package string ControllerImage *string // TODO read from package ControllerConfig *vendored.ControllerConfig DeploymentRuntimeConfig *vendored.DeploymentRuntimeConfig }
InstallCrossplaneProviderOptions hols information on the tested provider