@@ -61,7 +61,7 @@ func TestKubeadmConfigReconciler_MachineToBootstrapMapFuncReturn(t *testing.T) {
61
61
for i := range 3 {
62
62
configName := fmt .Sprintf ("my-config-%d" , i )
63
63
m := builder .Machine (metav1 .NamespaceDefault , fmt .Sprintf ("my-machine-%d" , i )).
64
- WithVersion ("v1.19 .1" ).
64
+ WithVersion ("v1.23 .1" ).
65
65
WithClusterName (cluster .Name ).
66
66
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "" ).Unstructured ()).
67
67
Build ()
@@ -135,7 +135,7 @@ func TestKubeadmConfigReconciler_TestSecretOwnerReferenceReconciliation(t *testi
135
135
clusterName := "my-cluster"
136
136
cluster := builder .Cluster (metav1 .NamespaceDefault , clusterName ).Build ()
137
137
machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
138
- WithVersion ("v1.19 .1" ).
138
+ WithVersion ("v1.23 .1" ).
139
139
WithClusterName (clusterName ).
140
140
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
141
141
Build ()
@@ -235,7 +235,7 @@ func TestKubeadmConfigReconciler_Reconcile_ReturnNilIfReferencedMachineIsNotFoun
235
235
236
236
machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
237
237
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
238
- WithVersion ("v1.19 .1" ).
238
+ WithVersion ("v1.23 .1" ).
239
239
Build ()
240
240
config := newKubeadmConfig (metav1 .NamespaceDefault , "cfg" )
241
241
addKubeadmConfigToMachine (config , machine )
@@ -267,7 +267,7 @@ func TestKubeadmConfigReconciler_Reconcile_ReturnEarlyIfMachineHasDataSecretName
267
267
cluster .Status .Initialization = & clusterv1.ClusterInitializationStatus {InfrastructureProvisioned : true }
268
268
269
269
machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
270
- WithVersion ("v1.19 .1" ).
270
+ WithVersion ("v1.23 .1" ).
271
271
WithClusterName ("cluster1" ).
272
272
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
273
273
Build ()
@@ -307,7 +307,7 @@ func TestKubeadmConfigReconciler_ReturnEarlyIfClusterInfraNotReady(t *testing.T)
307
307
308
308
cluster := builder .Cluster (metav1 .NamespaceDefault , "cluster" ).Build ()
309
309
machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
310
- WithVersion ("v1.19 .1" ).
310
+ WithVersion ("v1.23 .1" ).
311
311
WithClusterName (cluster .Name ).
312
312
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
313
313
Build ()
@@ -347,7 +347,7 @@ func TestKubeadmConfigReconciler_ReturnEarlyIfClusterInfraNotReady(t *testing.T)
347
347
func TestKubeadmConfigReconciler_Reconcile_ReturnEarlyIfMachineHasNoCluster (t * testing.T ) {
348
348
g := NewWithT (t )
349
349
machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
350
- WithVersion ("v1.19 .1" ).
350
+ WithVersion ("v1.23 .1" ).
351
351
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
352
352
Build ()
353
353
config := newKubeadmConfig (metav1 .NamespaceDefault , "cfg" )
@@ -380,7 +380,7 @@ func TestKubeadmConfigReconciler_Reconcile_ReturnNilIfAssociatedClusterIsNotFoun
380
380
381
381
cluster := builder .Cluster (metav1 .NamespaceDefault , "cluster" ).Build ()
382
382
machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
383
- WithVersion ("v1.19 .1" ).
383
+ WithVersion ("v1.23 .1" ).
384
384
WithClusterName (cluster .Name ).
385
385
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
386
386
Build ()
@@ -1936,13 +1936,13 @@ func TestKubeadmConfigReconciler_Reconcile_AlwaysCheckCAVerificationUnlessReques
1936
1936
1937
1937
controlPlaneMachineName := "my-machine"
1938
1938
machine := builder .Machine (metav1 .NamespaceDefault , controlPlaneMachineName ).
1939
- WithVersion ("v1.19 .1" ).
1939
+ WithVersion ("v1.23 .1" ).
1940
1940
WithClusterName (cluster .Name ).
1941
1941
Build ()
1942
1942
1943
1943
workerMachineName := "my-worker"
1944
1944
workerMachine := builder .Machine (metav1 .NamespaceDefault , workerMachineName ).
1945
- WithVersion ("v1.19 .1" ).
1945
+ WithVersion ("v1.23 .1" ).
1946
1946
WithClusterName (cluster .Name ).
1947
1947
Build ()
1948
1948
@@ -2023,7 +2023,7 @@ func TestKubeadmConfigReconciler_ClusterToKubeadmConfigs(t *testing.T) {
2023
2023
for i := range 3 {
2024
2024
configName := fmt .Sprintf ("my-config-%d" , i )
2025
2025
m := builder .Machine (metav1 .NamespaceDefault , fmt .Sprintf ("my-machine-%d" , i )).
2026
- WithVersion ("v1.19 .1" ).
2026
+ WithVersion ("v1.23 .1" ).
2027
2027
WithClusterName (cluster .Name ).
2028
2028
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , configName ).Unstructured ()).
2029
2029
Build ()
@@ -2585,7 +2585,7 @@ func TestKubeadmConfigReconciler_ResolveUsers(t *testing.T) {
2585
2585
// newWorkerMachineForCluster returns a Machine with the passed Cluster's information and a pre-configured name.
2586
2586
func newWorkerMachineForCluster (cluster * clusterv1.Cluster ) * clusterv1.Machine {
2587
2587
return builder .Machine (cluster .Namespace , "worker-machine" ).
2588
- WithVersion ("v1.19 .1" ).
2588
+ WithVersion ("v1.23 .1" ).
2589
2589
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (cluster .Namespace , "conf1" ).Unstructured ()).
2590
2590
WithClusterName (cluster .Name ).
2591
2591
Build ()
@@ -2594,7 +2594,7 @@ func newWorkerMachineForCluster(cluster *clusterv1.Cluster) *clusterv1.Machine {
2594
2594
// newControlPlaneMachine returns a Machine with the passed Cluster information and a MachineControlPlaneLabel.
2595
2595
func newControlPlaneMachine (cluster * clusterv1.Cluster , name string ) * clusterv1.Machine {
2596
2596
m := builder .Machine (cluster .Namespace , name ).
2597
- WithVersion ("v1.19 .1" ).
2597
+ WithVersion ("v1.23 .1" ).
2598
2598
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
2599
2599
WithClusterName (cluster .Name ).
2600
2600
WithLabels (map [string ]string {clusterv1 .MachineControlPlaneLabel : "" }).
@@ -2608,7 +2608,7 @@ func newMachinePool(cluster *clusterv1.Cluster, name string) *clusterv1.MachineP
2608
2608
WithClusterName (cluster .Name ).
2609
2609
WithLabels (map [string ]string {clusterv1 .ClusterNameLabel : cluster .Name }).
2610
2610
WithBootstrap (bootstrapbuilder .KubeadmConfig (cluster .Namespace , "conf1" ).Unstructured ()).
2611
- WithVersion ("1.19 .1" ).
2611
+ WithVersion ("v1.23 .1" ).
2612
2612
Build ()
2613
2613
return m
2614
2614
}
@@ -2767,7 +2767,7 @@ func TestKubeadmConfigReconciler_Reconcile_v1beta2_conditions(t *testing.T) {
2767
2767
}
2768
2768
2769
2769
machine := builder .Machine (metav1 .NamespaceDefault , "my-machine" ).
2770
- WithVersion ("v1.19 .1" ).
2770
+ WithVersion ("v1.23 .1" ).
2771
2771
WithClusterName (cluster .Name ).
2772
2772
WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "" ).Unstructured ()).
2773
2773
Build ()
0 commit comments