Documentation
¶
Index ¶
- func CreateClusterctlLocalRepository(config *clusterctl.E2EConfig, repositoryFolder string, cniEnabled bool) (string, error)
- func InitBootstrapCluster(bootstrapClusterProxy framework.ClusterProxy, config *clusterctl.E2EConfig, ...)
- func LoadE2EConfig(configPath string) (*clusterctl.E2EConfig, error)
- func SetupBootstrapCluster(config *clusterctl.E2EConfig, scheme *runtime.Scheme, useExistingCluster bool) (bootstrap.ClusterProvider, framework.ClusterProxy, error)
- func TearDown(bootstrapClusterProvider bootstrap.ClusterProvider, ...)
- type Mod
- type TestEnvironment
- func (t *TestEnvironment) Cleanup(ctx goctx.Context, objs ...client.Object) error
- func (t *TestEnvironment) CreateKubeconfigSecret(ctx goctx.Context, cluster *clusterv1.Cluster) error
- func (t *TestEnvironment) CreateNamespace(ctx goctx.Context, generateName string) (*corev1.Namespace, error)
- func (t *TestEnvironment) StartManager(ctx goctx.Context) error
- func (t *TestEnvironment) Stop() error
- func (t *TestEnvironment) WaitForWebhooks()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClusterctlLocalRepository ¶ added in v1.1.0
func InitBootstrapCluster ¶ added in v1.1.0
func InitBootstrapCluster(bootstrapClusterProxy framework.ClusterProxy, config *clusterctl.E2EConfig, clusterctlConfig, artifactFolder string)
func LoadE2EConfig ¶ added in v1.1.0
func LoadE2EConfig(configPath string) (*clusterctl.E2EConfig, error)
func SetupBootstrapCluster ¶ added in v1.1.0
func SetupBootstrapCluster(config *clusterctl.E2EConfig, scheme *runtime.Scheme, useExistingCluster bool) (bootstrap.ClusterProvider, framework.ClusterProxy, error)
func TearDown ¶ added in v1.1.0
func TearDown(bootstrapClusterProvider bootstrap.ClusterProvider, bootstrapClusterProxy framework.ClusterProxy)
Types ¶
type TestEnvironment ¶
type TestEnvironment struct { manager.Manager client.Client Config *rest.Config Simulator *vcsim.Simulator // contains filtered or unexported fields }
TestEnvironment encapsulates a Kubernetes local test environment.
func NewTestEnvironment ¶
func NewTestEnvironment() *TestEnvironment
NewTestEnvironment creates a new environment spinning up a local api-server.
func (*TestEnvironment) CreateKubeconfigSecret ¶ added in v0.7.9
func (*TestEnvironment) CreateNamespace ¶ added in v0.7.9
func (*TestEnvironment) StartManager ¶
func (t *TestEnvironment) StartManager(ctx goctx.Context) error
func (*TestEnvironment) Stop ¶
func (t *TestEnvironment) Stop() error
func (*TestEnvironment) WaitForWebhooks ¶
func (t *TestEnvironment) WaitForWebhooks()
Click to show internal directories.
Click to hide internal directories.