Documentation
¶
Index ¶
- func ApplyManagedClusterTemplateAndWait(ctx context.Context, input ApplyManagedClusterTemplateAndWaitInput, ...)
- func Byf(format string, a ...any)
- func CAPSClusterDeploymentSpec(inputGetter func() CAPSClusterDeploymentSpecInput)
- func DiscoveryAndWaitForManagedControlPlaneInitialized(ctx context.Context, ...) *infrav1.ScalewayManagedControlPlane
- func GetManagedControlPlaneByCluster(ctx context.Context, input GetManagedControlPlaneByClusterInput) *infrav1.ScalewayManagedControlPlane
- type ApplyManagedClusterTemplateAndWaitInput
- type ApplyManagedClusterTemplateAndWaitResult
- type CAPSClusterDeploymentSpecInput
- type DiscoveryAndWaitForManagedControlPlaneInitializedInput
- type GetManagedControlPlaneByClusterInput
- type ManagedControlPlaneResult
- type Waiter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyManagedClusterTemplateAndWait ¶ added in v0.1.3
func ApplyManagedClusterTemplateAndWait(ctx context.Context, input ApplyManagedClusterTemplateAndWaitInput, result *ApplyManagedClusterTemplateAndWaitResult)
ApplyManagedClusterTemplateAndWait gets a managed cluster template using clusterctl, and waits for the cluster to be ready. Important! this method assumes the cluster uses a ScalewayManagedControlPlane and MachinePools.
func CAPSClusterDeploymentSpec ¶
func CAPSClusterDeploymentSpec(inputGetter func() CAPSClusterDeploymentSpecInput)
CAPSClusterDeploymentSpec implements a test that verifies that MachineDeployment rolling updates are successful.
func DiscoveryAndWaitForManagedControlPlaneInitialized ¶ added in v0.1.3
func DiscoveryAndWaitForManagedControlPlaneInitialized(ctx context.Context, input DiscoveryAndWaitForManagedControlPlaneInitializedInput, intervals ...interface{}) *infrav1.ScalewayManagedControlPlane
DiscoveryAndWaitForManagedControlPlaneInitialized discovers the KubeadmControlPlane object attached to a cluster and waits for it to be initialized.
func GetManagedControlPlaneByCluster ¶ added in v0.1.3
func GetManagedControlPlaneByCluster(ctx context.Context, input GetManagedControlPlaneByClusterInput) *infrav1.ScalewayManagedControlPlane
GetManagedControlPlaneByCluster returns the ScalewayManagedControlPlane objects for a cluster.
Types ¶
type ApplyManagedClusterTemplateAndWaitInput ¶ added in v0.1.3
type ApplyManagedClusterTemplateAndWaitInput struct {
ClusterProxy framework.ClusterProxy
ConfigCluster clusterctl.ConfigClusterInput
WaitForClusterIntervals []interface{}
WaitForControlPlaneIntervals []interface{}
WaitForMachinePools []interface{}
Options []framework.CreateOrUpdateOption
PreWaitForCluster func()
PostMachinesProvisioned func()
WaitForControlPlaneInitialized Waiter
}
ApplyManagedClusterTemplateAndWaitInput is the input type for ApplyManagedClusterTemplateAndWait.
type ApplyManagedClusterTemplateAndWaitResult ¶ added in v0.1.3
type ApplyManagedClusterTemplateAndWaitResult struct {
ClusterClass *clusterv1.ClusterClass
Cluster *clusterv1.Cluster
ControlPlane *infrav1.ScalewayManagedControlPlane
MachinePools []*expv1.MachinePool
}
ApplyManagedClusterTemplateAndWaitResult is the output type for ApplyClusterTemplateAndWait.
type CAPSClusterDeploymentSpecInput ¶
type CAPSClusterDeploymentSpecInput struct {
E2EConfig *clusterctl.E2EConfig
ClusterctlConfigPath string
BootstrapClusterProxy framework.ClusterProxy
ArtifactFolder string
SkipCleanup bool
Flavor string
WorkerMachineCount int64
ControlPlaneMachineCount int64
ClusterctlVariables map[string]string
}
CAPSClusterDeploymentSpecInput is the input for CAPSClusterDeploymentSpec.
type DiscoveryAndWaitForManagedControlPlaneInitializedInput ¶ added in v0.1.3
type DiscoveryAndWaitForManagedControlPlaneInitializedInput struct {
Lister framework.Lister
Cluster *clusterv1.Cluster
}
DiscoveryAndWaitFoManagedControlPlaneInitializedInput is the input type for DiscoveryAndWaitForManagedControlPlaneInitialized.
type GetManagedControlPlaneByClusterInput ¶ added in v0.1.3
type GetManagedControlPlaneByClusterInput struct {
Lister framework.Lister
ClusterName string
Namespace string
}
GetManagedontrolPlaneByClusterInput is the input for GetManagedControlPlaneByCluster.
type ManagedControlPlaneResult ¶ added in v0.1.3
type ManagedControlPlaneResult struct {
clusterctl.ApplyClusterTemplateAndWaitResult
ManagedControlPlane *infrav1.ScalewayManagedControlPlane
}
type Waiter ¶ added in v0.1.3
type Waiter func(ctx context.Context, input ApplyManagedClusterTemplateAndWaitInput, result *ApplyManagedClusterTemplateAndWaitResult)
Waiter is a function that runs and waits for a long-running operation to finish and updates the result.