@@ -1852,6 +1852,7 @@ func TestKubeadmControlPlaneReconciler_reconcileControlPlaneAndMachinesCondition
1852
1852
},
1853
1853
Spec : clusterv1.MachineSpec {
1854
1854
Version : ptr .To ("v1.31.0" ),
1855
+ ProviderID : ptr .To ("foo" ),
1855
1856
InfrastructureRef : corev1.ObjectReference {Kind : "GenericInfrastructureMachine" , APIVersion : "infrastructure.cluster.x-k8s.io/v1beta1" , Name : "m1" },
1856
1857
},
1857
1858
}
@@ -2012,46 +2013,46 @@ func TestKubeadmControlPlaneReconciler_reconcileControlPlaneAndMachinesCondition
2012
2013
Status : metav1 .ConditionUnknown ,
2013
2014
Reason : controlplanev1 .KubeadmControlPlaneEtcdClusterHealthUnknownV1Beta2Reason ,
2014
2015
Message : "* Machine machine1-test:\n " +
2015
- " * EtcdMemberHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2016
+ " * EtcdMemberHealthy: Waiting for a Node with spec.providerID foo to exist " ,
2016
2017
},
2017
2018
{
2018
2019
Type : controlplanev1 .KubeadmControlPlaneControlPlaneComponentsHealthyV1Beta2Condition ,
2019
2020
Status : metav1 .ConditionUnknown ,
2020
2021
Reason : controlplanev1 .KubeadmControlPlaneControlPlaneComponentsHealthUnknownV1Beta2Reason ,
2021
2022
Message : "* Machine machine1-test:\n " +
2022
- " * Control plane components: Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2023
+ " * Control plane components: Waiting for a Node with spec.providerID foo to exist " ,
2023
2024
},
2024
2025
},
2025
2026
expectMachineConditions : []metav1.Condition {
2026
2027
{
2027
2028
Type : controlplanev1 .KubeadmControlPlaneMachineAPIServerPodHealthyV1Beta2Condition ,
2028
2029
Status : metav1 .ConditionUnknown ,
2029
2030
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2030
- Message : "Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2031
+ Message : "Waiting for a Node with spec.providerID foo to exist " ,
2031
2032
},
2032
2033
{
2033
2034
Type : controlplanev1 .KubeadmControlPlaneMachineControllerManagerPodHealthyV1Beta2Condition ,
2034
2035
Status : metav1 .ConditionUnknown ,
2035
2036
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2036
- Message : "Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2037
+ Message : "Waiting for a Node with spec.providerID foo to exist " ,
2037
2038
},
2038
2039
{
2039
2040
Type : controlplanev1 .KubeadmControlPlaneMachineSchedulerPodHealthyV1Beta2Condition ,
2040
2041
Status : metav1 .ConditionUnknown ,
2041
2042
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2042
- Message : "Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2043
+ Message : "Waiting for a Node with spec.providerID foo to exist " ,
2043
2044
},
2044
2045
{
2045
2046
Type : controlplanev1 .KubeadmControlPlaneMachineEtcdPodHealthyV1Beta2Condition ,
2046
2047
Status : metav1 .ConditionUnknown ,
2047
2048
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2048
- Message : "Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2049
+ Message : "Waiting for a Node with spec.providerID foo to exist " ,
2049
2050
},
2050
2051
{
2051
2052
Type : controlplanev1 .KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition ,
2052
2053
Status : metav1 .ConditionUnknown ,
2053
2054
Reason : controlplanev1 .KubeadmControlPlaneMachineEtcdMemberInspectionFailedV1Beta2Reason ,
2054
- Message : "Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2055
+ Message : "Waiting for a Node with spec.providerID foo to exist " ,
2055
2056
},
2056
2057
{
2057
2058
Type : clusterv1 .MachineUpToDateV1Beta2Condition ,
@@ -2089,46 +2090,46 @@ func TestKubeadmControlPlaneReconciler_reconcileControlPlaneAndMachinesCondition
2089
2090
Status : metav1 .ConditionUnknown ,
2090
2091
Reason : controlplanev1 .KubeadmControlPlaneEtcdClusterHealthUnknownV1Beta2Reason ,
2091
2092
Message : "* Machine machine1-test:\n " +
2092
- " * EtcdMemberHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2093
+ " * EtcdMemberHealthy: Waiting for a Node with spec.providerID foo to exist " ,
2093
2094
},
2094
2095
{
2095
2096
Type : controlplanev1 .KubeadmControlPlaneControlPlaneComponentsHealthyV1Beta2Condition ,
2096
2097
Status : metav1 .ConditionUnknown ,
2097
2098
Reason : controlplanev1 .KubeadmControlPlaneControlPlaneComponentsHealthUnknownV1Beta2Reason ,
2098
2099
Message : "* Machine machine1-test:\n " +
2099
- " * Control plane components: Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2100
+ " * Control plane components: Waiting for a Node with spec.providerID foo to exist " ,
2100
2101
},
2101
2102
},
2102
2103
expectMachineConditions : []metav1.Condition {
2103
2104
{
2104
2105
Type : controlplanev1 .KubeadmControlPlaneMachineAPIServerPodHealthyV1Beta2Condition ,
2105
2106
Status : metav1 .ConditionUnknown ,
2106
2107
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2107
- Message : "Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2108
+ Message : "Waiting for a Node with spec.providerID foo to exist " ,
2108
2109
},
2109
2110
{
2110
2111
Type : controlplanev1 .KubeadmControlPlaneMachineControllerManagerPodHealthyV1Beta2Condition ,
2111
2112
Status : metav1 .ConditionUnknown ,
2112
2113
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2113
- Message : "Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2114
+ Message : "Waiting for a Node with spec.providerID foo to exist " ,
2114
2115
},
2115
2116
{
2116
2117
Type : controlplanev1 .KubeadmControlPlaneMachineSchedulerPodHealthyV1Beta2Condition ,
2117
2118
Status : metav1 .ConditionUnknown ,
2118
2119
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2119
- Message : "Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2120
+ Message : "Waiting for a Node with spec.providerID foo to exist " ,
2120
2121
},
2121
2122
{
2122
2123
Type : controlplanev1 .KubeadmControlPlaneMachineEtcdPodHealthyV1Beta2Condition ,
2123
2124
Status : metav1 .ConditionUnknown ,
2124
2125
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2125
- Message : "Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2126
+ Message : "Waiting for a Node with spec.providerID foo to exist " ,
2126
2127
},
2127
2128
{
2128
2129
Type : controlplanev1 .KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition ,
2129
2130
Status : metav1 .ConditionUnknown ,
2130
2131
Reason : controlplanev1 .KubeadmControlPlaneMachineEtcdMemberInspectionFailedV1Beta2Reason ,
2131
- Message : "Waiting for GenericInfrastructureMachine to report spec.providerID" ,
2132
+ Message : "Waiting for a Node with spec.providerID foo to exist " ,
2132
2133
},
2133
2134
{
2134
2135
Type : clusterv1 .MachineUpToDateV1Beta2Condition ,
0 commit comments