Documentation
¶
Index ¶
- type ClusterConfig
- type E2ECluster
- func (ec *E2ECluster) Dump(ctx context.Context)
- func (e2e *E2ECluster) GenerateAndApplyClusterTemplate(ctx context.Context)
- func (e2e *E2ECluster) SetupControlPlaneIP(ctx context.Context)
- func (e2e *E2ECluster) SetupNamespace(ctx context.Context) *corev1.Namespace
- func (e2e *E2ECluster) Teardown(ctx context.Context)
- func (e2e *E2ECluster) Variables() map[string]string
- type E2EClusterRefs
- type E2EContext
- func (ee *E2EContext) CreateClusterctlConfig(ctx context.Context)
- func (ee *E2EContext) InitManagementCluster(ctx context.Context)
- func (e2e *E2EContext) NewE2ECluster(cfg ClusterConfig) *E2ECluster
- func (ee *E2EContext) ProvideBootstrapCluster()
- func (ee *E2EContext) Teardown(ctx context.Context)
- func (ee *E2EContext) TeardownMetalStackProject(ctx context.Context)
- type Environment
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterConfig ¶
type ClusterConfig struct {
SpecName string
NamespaceName string
ClusterName string
KubernetesVersion string
ControlPlaneIP string
FirewallSize string
FirewallImage string
FirewallNetworks []string
ControlPlaneMachineCount int64
ControlPlaneMachineSize string
ControlPlaneMachineImage string
WorkerMachineCount int64
WorkerMachineSize string
WorkerMachineImage string
}
type E2ECluster ¶
type E2ECluster struct {
E2EContext *E2EContext
ClusterConfig
Refs *E2EClusterRefs
}
func (*E2ECluster) Dump ¶ added in v0.6.3
func (ec *E2ECluster) Dump(ctx context.Context)
func (*E2ECluster) GenerateAndApplyClusterTemplate ¶
func (e2e *E2ECluster) GenerateAndApplyClusterTemplate(ctx context.Context)
func (*E2ECluster) SetupControlPlaneIP ¶ added in v0.8.0
func (e2e *E2ECluster) SetupControlPlaneIP(ctx context.Context)
func (*E2ECluster) SetupNamespace ¶
func (e2e *E2ECluster) SetupNamespace(ctx context.Context) *corev1.Namespace
func (*E2ECluster) Teardown ¶
func (e2e *E2ECluster) Teardown(ctx context.Context)
func (*E2ECluster) Variables ¶
func (e2e *E2ECluster) Variables() map[string]string
type E2EClusterRefs ¶
type E2EClusterRefs struct {
Namespace *corev1.Namespace
NodeNetwork *metalmodels.V1NetworkResponse
ControlPlaneIP *metalmodels.V1IPResponse
Workload framework.ClusterProxy
Cluster *clusterv1.Cluster
}
type E2EContext ¶
type E2EContext struct {
E2EConfig *clusterctl.E2EConfig
Environment *Environment
}
E2EContext holds the shared context for the e2e tests.
func NewE2EContext ¶
func NewE2EContext(options ...Option) *E2EContext
func (*E2EContext) CreateClusterctlConfig ¶
func (ee *E2EContext) CreateClusterctlConfig(ctx context.Context)
func (*E2EContext) InitManagementCluster ¶
func (ee *E2EContext) InitManagementCluster(ctx context.Context)
func (*E2EContext) NewE2ECluster ¶
func (e2e *E2EContext) NewE2ECluster(cfg ClusterConfig) *E2ECluster
func (*E2EContext) ProvideBootstrapCluster ¶
func (ee *E2EContext) ProvideBootstrapCluster()
func (*E2EContext) Teardown ¶
func (ee *E2EContext) Teardown(ctx context.Context)
func (*E2EContext) TeardownMetalStackProject ¶ added in v0.6.3
func (ee *E2EContext) TeardownMetalStackProject(ctx context.Context)
type Environment ¶
type Environment struct {
Scheme *runtime.Scheme
ClusterProvider bootstrap.ClusterProvider
Bootstrap framework.ClusterProxy
Metal metal.Client
ClusterctlConfigPath string
Flavor string
// contains filtered or unexported fields
}
type Option ¶
type Option func(*E2EContext)
Click to show internal directories.
Click to hide internal directories.