Documentation ¶
Index ¶
Constants ¶
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
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
CrossplaneSetup holds configuration specific to the crossplane installation
func (CrossplaneSetup) Options ¶ added in v1.3.3
func (c CrossplaneSetup) Options() []xpenvfuncs.CrossplaneOpt
Options returns configurtion as options pattern to be passed on to installation process step
type ProviderCredentials ¶ added in v1.3.0
ProviderCredentials holds the data for a secret to be created in the crossplane namespace