@@ -56,7 +56,7 @@ func DestroyMachineSpec(ctx context.Context, inputGetter func() CommonSpecInput)
56
56
clusterResources = new (clusterctl.ApplyClusterTemplateAndWaitResult )
57
57
})
58
58
59
- It ("Should replace a KCP machine when it is destroyed" , func () {
59
+ It ("Should replace a machine when it is destroyed" , func () {
60
60
clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
61
61
ClusterProxy : input .BootstrapClusterProxy ,
62
62
CNIManifestPath : input .E2EConfig .GetVariable (CNIPath ),
@@ -65,44 +65,22 @@ func DestroyMachineSpec(ctx context.Context, inputGetter func() CommonSpecInput)
65
65
ClusterctlConfigPath : input .ClusterctlConfigPath ,
66
66
KubeconfigPath : input .BootstrapClusterProxy .GetKubeconfigPath (),
67
67
InfrastructureProvider : clusterctl .DefaultInfrastructureProvider ,
68
- Flavor : "destroy-kcp- machine" ,
68
+ Flavor : "destroy-machine" ,
69
69
Namespace : namespace .Name ,
70
70
ClusterName : fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 )),
71
71
KubernetesVersion : input .E2EConfig .GetVariable (KubernetesVersion ),
72
72
ControlPlaneMachineCount : pointer .Int64Ptr (3 ),
73
- WorkerMachineCount : pointer .Int64Ptr (1 ),
73
+ WorkerMachineCount : pointer .Int64Ptr (3 ),
74
74
},
75
75
WaitForClusterIntervals : input .E2EConfig .GetIntervals (specName , "wait-cluster" ),
76
76
WaitForControlPlaneIntervals : input .E2EConfig .GetIntervals (specName , "wait-control-plane" ),
77
77
WaitForMachineDeployments : input .E2EConfig .GetIntervals (specName , "wait-worker-nodes" ),
78
78
}, clusterResources )
79
79
80
+ By ("Testing control plane remediation" )
80
81
DestroyOneMachineAndWaitForReplacement (clusterResources .Cluster .Name , "control-plane" , input .E2EConfig .GetIntervals (specName , "wait-machine-remediation" ))
81
82
82
- By ("PASSED!" )
83
- })
84
-
85
- It ("Should replace a machine deployment when it is destroyed" , func () {
86
- clusterctl .ApplyClusterTemplateAndWait (ctx , clusterctl.ApplyClusterTemplateAndWaitInput {
87
- ClusterProxy : input .BootstrapClusterProxy ,
88
- CNIManifestPath : input .E2EConfig .GetVariable (CNIPath ),
89
- ConfigCluster : clusterctl.ConfigClusterInput {
90
- LogFolder : filepath .Join (input .ArtifactFolder , "clusters" , input .BootstrapClusterProxy .GetName ()),
91
- ClusterctlConfigPath : input .ClusterctlConfigPath ,
92
- KubeconfigPath : input .BootstrapClusterProxy .GetKubeconfigPath (),
93
- InfrastructureProvider : clusterctl .DefaultInfrastructureProvider ,
94
- Flavor : "destroy-md-machine" ,
95
- Namespace : namespace .Name ,
96
- ClusterName : fmt .Sprintf ("%s-%s" , specName , util .RandomString (6 )),
97
- KubernetesVersion : input .E2EConfig .GetVariable (KubernetesVersion ),
98
- ControlPlaneMachineCount : pointer .Int64Ptr (1 ),
99
- WorkerMachineCount : pointer .Int64Ptr (3 ),
100
- },
101
- WaitForClusterIntervals : input .E2EConfig .GetIntervals (specName , "wait-cluster" ),
102
- WaitForControlPlaneIntervals : input .E2EConfig .GetIntervals (specName , "wait-control-plane" ),
103
- WaitForMachineDeployments : input .E2EConfig .GetIntervals (specName , "wait-worker-nodes" ),
104
- }, clusterResources )
105
-
83
+ By ("Testing machine deployment remediation" )
106
84
DestroyOneMachineAndWaitForReplacement (clusterResources .Cluster .Name , "md" , input .E2EConfig .GetIntervals (specName , "wait-machine-remediation" ))
107
85
108
86
By ("PASSED!" )
0 commit comments