@@ -2012,49 +2012,49 @@ func TestKubeadmControlPlaneReconciler_reconcileControlPlaneAndMachinesCondition
2012
2012
Status : metav1 .ConditionUnknown ,
2013
2013
Reason : controlplanev1 .KubeadmControlPlaneEtcdClusterHealthUnknownV1Beta2Reason ,
2014
2014
Message : "* Machine machine1-test:\n " +
2015
- " * EtcdMemberHealthy: Node does not exist " ,
2015
+ " * EtcdMemberHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2016
2016
},
2017
2017
{
2018
2018
Type : controlplanev1 .KubeadmControlPlaneControlPlaneComponentsHealthyV1Beta2Condition ,
2019
2019
Status : metav1 .ConditionUnknown ,
2020
2020
Reason : controlplanev1 .KubeadmControlPlaneControlPlaneComponentsHealthUnknownV1Beta2Reason ,
2021
2021
Message : "* Machine machine1-test:\n " +
2022
- " * APIServerPodHealthy: Node does not exist \n " +
2023
- " * ControllerManagerPodHealthy: Node does not exist \n " +
2024
- " * SchedulerPodHealthy: Node does not exist \n " +
2025
- " * EtcdPodHealthy: Node does not exist " ,
2022
+ " * APIServerPodHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID \n " +
2023
+ " * ControllerManagerPodHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID \n " +
2024
+ " * SchedulerPodHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID \n " +
2025
+ " * EtcdPodHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2026
2026
},
2027
2027
},
2028
2028
expectMachineConditions : []metav1.Condition {
2029
2029
{
2030
2030
Type : controlplanev1 .KubeadmControlPlaneMachineAPIServerPodHealthyV1Beta2Condition ,
2031
2031
Status : metav1 .ConditionUnknown ,
2032
2032
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2033
- Message : "Node does not exist " ,
2033
+ Message : "Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2034
2034
},
2035
2035
{
2036
2036
Type : controlplanev1 .KubeadmControlPlaneMachineControllerManagerPodHealthyV1Beta2Condition ,
2037
2037
Status : metav1 .ConditionUnknown ,
2038
2038
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2039
- Message : "Node does not exist " ,
2039
+ Message : "Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2040
2040
},
2041
2041
{
2042
2042
Type : controlplanev1 .KubeadmControlPlaneMachineSchedulerPodHealthyV1Beta2Condition ,
2043
2043
Status : metav1 .ConditionUnknown ,
2044
2044
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2045
- Message : "Node does not exist " ,
2045
+ Message : "Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2046
2046
},
2047
2047
{
2048
2048
Type : controlplanev1 .KubeadmControlPlaneMachineEtcdPodHealthyV1Beta2Condition ,
2049
2049
Status : metav1 .ConditionUnknown ,
2050
2050
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2051
- Message : "Node does not exist " ,
2051
+ Message : "Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2052
2052
},
2053
2053
{
2054
2054
Type : controlplanev1 .KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition ,
2055
2055
Status : metav1 .ConditionUnknown ,
2056
2056
Reason : controlplanev1 .KubeadmControlPlaneMachineEtcdMemberInspectionFailedV1Beta2Reason ,
2057
- Message : "Node does not exist " ,
2057
+ Message : "Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2058
2058
},
2059
2059
{
2060
2060
Type : clusterv1 .MachineUpToDateV1Beta2Condition ,
@@ -2092,49 +2092,49 @@ func TestKubeadmControlPlaneReconciler_reconcileControlPlaneAndMachinesCondition
2092
2092
Status : metav1 .ConditionUnknown ,
2093
2093
Reason : controlplanev1 .KubeadmControlPlaneEtcdClusterHealthUnknownV1Beta2Reason ,
2094
2094
Message : "* Machine machine1-test:\n " +
2095
- " * EtcdMemberHealthy: Node does not exist " ,
2095
+ " * EtcdMemberHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2096
2096
},
2097
2097
{
2098
2098
Type : controlplanev1 .KubeadmControlPlaneControlPlaneComponentsHealthyV1Beta2Condition ,
2099
2099
Status : metav1 .ConditionUnknown ,
2100
2100
Reason : controlplanev1 .KubeadmControlPlaneControlPlaneComponentsHealthUnknownV1Beta2Reason ,
2101
2101
Message : "* Machine machine1-test:\n " +
2102
- " * APIServerPodHealthy: Node does not exist \n " +
2103
- " * ControllerManagerPodHealthy: Node does not exist \n " +
2104
- " * SchedulerPodHealthy: Node does not exist \n " +
2105
- " * EtcdPodHealthy: Node does not exist " ,
2102
+ " * APIServerPodHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID \n " +
2103
+ " * ControllerManagerPodHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID \n " +
2104
+ " * SchedulerPodHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID \n " +
2105
+ " * EtcdPodHealthy: Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2106
2106
},
2107
2107
},
2108
2108
expectMachineConditions : []metav1.Condition {
2109
2109
{
2110
2110
Type : controlplanev1 .KubeadmControlPlaneMachineAPIServerPodHealthyV1Beta2Condition ,
2111
2111
Status : metav1 .ConditionUnknown ,
2112
2112
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2113
- Message : "Node does not exist " ,
2113
+ Message : "Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2114
2114
},
2115
2115
{
2116
2116
Type : controlplanev1 .KubeadmControlPlaneMachineControllerManagerPodHealthyV1Beta2Condition ,
2117
2117
Status : metav1 .ConditionUnknown ,
2118
2118
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2119
- Message : "Node does not exist " ,
2119
+ Message : "Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2120
2120
},
2121
2121
{
2122
2122
Type : controlplanev1 .KubeadmControlPlaneMachineSchedulerPodHealthyV1Beta2Condition ,
2123
2123
Status : metav1 .ConditionUnknown ,
2124
2124
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2125
- Message : "Node does not exist " ,
2125
+ Message : "Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2126
2126
},
2127
2127
{
2128
2128
Type : controlplanev1 .KubeadmControlPlaneMachineEtcdPodHealthyV1Beta2Condition ,
2129
2129
Status : metav1 .ConditionUnknown ,
2130
2130
Reason : controlplanev1 .KubeadmControlPlaneMachinePodInspectionFailedV1Beta2Reason ,
2131
- Message : "Node does not exist " ,
2131
+ Message : "Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2132
2132
},
2133
2133
{
2134
2134
Type : controlplanev1 .KubeadmControlPlaneMachineEtcdMemberHealthyV1Beta2Condition ,
2135
2135
Status : metav1 .ConditionUnknown ,
2136
2136
Reason : controlplanev1 .KubeadmControlPlaneMachineEtcdMemberInspectionFailedV1Beta2Reason ,
2137
- Message : "Node does not exist " ,
2137
+ Message : "Waiting for GenericInfrastructureMachine to report spec.providerID " ,
2138
2138
},
2139
2139
{
2140
2140
Type : clusterv1 .MachineUpToDateV1Beta2Condition ,
@@ -3301,7 +3301,7 @@ func TestKubeadmControlPlaneReconciler_reconcileDelete(t *testing.T) {
3301
3301
g .Expect (err ).ToNot (HaveOccurred ())
3302
3302
g .Expect (kcp .Finalizers ).To (BeEmpty ())
3303
3303
g .Expect (controlPlane .DeletingReason ).To (Equal (controlplanev1 .KubeadmControlPlaneDeletingDeletionCompletedV1Beta2Reason ))
3304
- g .Expect (controlPlane .DeletingMessage ).To (BeEmpty ( ))
3304
+ g .Expect (controlPlane .DeletingMessage ).To (Equal ( "Deletion completed" ))
3305
3305
})
3306
3306
3307
3307
t .Run ("does not remove any control plane Machines if other Machines exist" , func (t * testing.T ) {
@@ -3453,7 +3453,7 @@ func TestKubeadmControlPlaneReconciler_reconcileDelete(t *testing.T) {
3453
3453
g .Expect (err ).ToNot (HaveOccurred ())
3454
3454
g .Expect (kcp .Finalizers ).To (BeEmpty ())
3455
3455
g .Expect (controlPlane .DeletingReason ).To (Equal (controlplanev1 .KubeadmControlPlaneDeletingDeletionCompletedV1Beta2Reason ))
3456
- g .Expect (controlPlane .DeletingMessage ).To (BeEmpty ( ))
3456
+ g .Expect (controlPlane .DeletingMessage ).To (Equal ( "Deletion completed" ))
3457
3457
})
3458
3458
}
3459
3459
0 commit comments