@@ -61,7 +61,7 @@ func TestKubeadmConfigReconciler_MachineToBootstrapMapFuncReturn(t *testing.T) {
6161 for i := range 3 {
6262 configName := fmt .Sprintf ("my-config-%d" , i )
6363 m := builder .Machine (metav1 .NamespaceDefault , fmt .Sprintf ("my-machine-%d" , i )).
64- WithVersion ("v1.19 .1" ).
64+ WithVersion ("v1.23 .1" ).
6565 WithClusterName (cluster .Name ).
6666 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "" ).Unstructured ()).
6767 Build ()
@@ -135,7 +135,7 @@ func TestKubeadmConfigReconciler_TestSecretOwnerReferenceReconciliation(t *testi
135135 clusterName := "my-cluster"
136136 cluster := builder .Cluster (metav1 .NamespaceDefault , clusterName ).Build ()
137137 machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
138- WithVersion ("v1.19 .1" ).
138+ WithVersion ("v1.23 .1" ).
139139 WithClusterName (clusterName ).
140140 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
141141 Build ()
@@ -235,7 +235,7 @@ func TestKubeadmConfigReconciler_Reconcile_ReturnNilIfReferencedMachineIsNotFoun
235235
236236 machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
237237 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
238- WithVersion ("v1.19 .1" ).
238+ WithVersion ("v1.23 .1" ).
239239 Build ()
240240 config := newKubeadmConfig (metav1 .NamespaceDefault , "cfg" )
241241 addKubeadmConfigToMachine (config , machine )
@@ -267,7 +267,7 @@ func TestKubeadmConfigReconciler_Reconcile_ReturnEarlyIfMachineHasDataSecretName
267267 cluster .Status .Initialization = & clusterv1.ClusterInitializationStatus {InfrastructureProvisioned : true }
268268
269269 machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
270- WithVersion ("v1.19 .1" ).
270+ WithVersion ("v1.23 .1" ).
271271 WithClusterName ("cluster1" ).
272272 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
273273 Build ()
@@ -307,7 +307,7 @@ func TestKubeadmConfigReconciler_ReturnEarlyIfClusterInfraNotReady(t *testing.T)
307307
308308 cluster := builder .Cluster (metav1 .NamespaceDefault , "cluster" ).Build ()
309309 machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
310- WithVersion ("v1.19 .1" ).
310+ WithVersion ("v1.23 .1" ).
311311 WithClusterName (cluster .Name ).
312312 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
313313 Build ()
@@ -347,7 +347,7 @@ func TestKubeadmConfigReconciler_ReturnEarlyIfClusterInfraNotReady(t *testing.T)
347347func TestKubeadmConfigReconciler_Reconcile_ReturnEarlyIfMachineHasNoCluster (t * testing.T ) {
348348 g := NewWithT (t )
349349 machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
350- WithVersion ("v1.19 .1" ).
350+ WithVersion ("v1.23 .1" ).
351351 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
352352 Build ()
353353 config := newKubeadmConfig (metav1 .NamespaceDefault , "cfg" )
@@ -380,7 +380,7 @@ func TestKubeadmConfigReconciler_Reconcile_ReturnNilIfAssociatedClusterIsNotFoun
380380
381381 cluster := builder .Cluster (metav1 .NamespaceDefault , "cluster" ).Build ()
382382 machine := builder .Machine (metav1 .NamespaceDefault , "machine" ).
383- WithVersion ("v1.19 .1" ).
383+ WithVersion ("v1.23 .1" ).
384384 WithClusterName (cluster .Name ).
385385 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
386386 Build ()
@@ -1936,13 +1936,13 @@ func TestKubeadmConfigReconciler_Reconcile_AlwaysCheckCAVerificationUnlessReques
19361936
19371937 controlPlaneMachineName := "my-machine"
19381938 machine := builder .Machine (metav1 .NamespaceDefault , controlPlaneMachineName ).
1939- WithVersion ("v1.19 .1" ).
1939+ WithVersion ("v1.23 .1" ).
19401940 WithClusterName (cluster .Name ).
19411941 Build ()
19421942
19431943 workerMachineName := "my-worker"
19441944 workerMachine := builder .Machine (metav1 .NamespaceDefault , workerMachineName ).
1945- WithVersion ("v1.19 .1" ).
1945+ WithVersion ("v1.23 .1" ).
19461946 WithClusterName (cluster .Name ).
19471947 Build ()
19481948
@@ -2023,7 +2023,7 @@ func TestKubeadmConfigReconciler_ClusterToKubeadmConfigs(t *testing.T) {
20232023 for i := range 3 {
20242024 configName := fmt .Sprintf ("my-config-%d" , i )
20252025 m := builder .Machine (metav1 .NamespaceDefault , fmt .Sprintf ("my-machine-%d" , i )).
2026- WithVersion ("v1.19 .1" ).
2026+ WithVersion ("v1.23 .1" ).
20272027 WithClusterName (cluster .Name ).
20282028 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , configName ).Unstructured ()).
20292029 Build ()
@@ -2585,7 +2585,7 @@ func TestKubeadmConfigReconciler_ResolveUsers(t *testing.T) {
25852585// newWorkerMachineForCluster returns a Machine with the passed Cluster's information and a pre-configured name.
25862586func newWorkerMachineForCluster (cluster * clusterv1.Cluster ) * clusterv1.Machine {
25872587 return builder .Machine (cluster .Namespace , "worker-machine" ).
2588- WithVersion ("v1.19 .1" ).
2588+ WithVersion ("v1.23 .1" ).
25892589 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (cluster .Namespace , "conf1" ).Unstructured ()).
25902590 WithClusterName (cluster .Name ).
25912591 Build ()
@@ -2594,7 +2594,7 @@ func newWorkerMachineForCluster(cluster *clusterv1.Cluster) *clusterv1.Machine {
25942594// newControlPlaneMachine returns a Machine with the passed Cluster information and a MachineControlPlaneLabel.
25952595func newControlPlaneMachine (cluster * clusterv1.Cluster , name string ) * clusterv1.Machine {
25962596 m := builder .Machine (cluster .Namespace , name ).
2597- WithVersion ("v1.19 .1" ).
2597+ WithVersion ("v1.23 .1" ).
25982598 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "cfg" ).Unstructured ()).
25992599 WithClusterName (cluster .Name ).
26002600 WithLabels (map [string ]string {clusterv1 .MachineControlPlaneLabel : "" }).
@@ -2608,7 +2608,7 @@ func newMachinePool(cluster *clusterv1.Cluster, name string) *clusterv1.MachineP
26082608 WithClusterName (cluster .Name ).
26092609 WithLabels (map [string ]string {clusterv1 .ClusterNameLabel : cluster .Name }).
26102610 WithBootstrap (bootstrapbuilder .KubeadmConfig (cluster .Namespace , "conf1" ).Unstructured ()).
2611- WithVersion ("1.19 .1" ).
2611+ WithVersion ("v1.23 .1" ).
26122612 Build ()
26132613 return m
26142614}
@@ -2767,7 +2767,7 @@ func TestKubeadmConfigReconciler_Reconcile_v1beta2_conditions(t *testing.T) {
27672767 }
27682768
27692769 machine := builder .Machine (metav1 .NamespaceDefault , "my-machine" ).
2770- WithVersion ("v1.19 .1" ).
2770+ WithVersion ("v1.23 .1" ).
27712771 WithClusterName (cluster .Name ).
27722772 WithBootstrapTemplate (bootstrapbuilder .KubeadmConfig (metav1 .NamespaceDefault , "" ).Unstructured ()).
27732773 Build ()
0 commit comments