Use init as default status
@@ -21,7 +21,7 @@ func (r *ReconcilePerconaXtraDBCluster) updateStatus(cr *api.PerconaXtraDBCluste
maxStatusesQuantity := 20
clusterCondition := api.ClusterCondition{
Status: api.ConditionTrue,
- Type: api.ClusterReady,
+ Type: api.ClusterInit,
LastTransitionTime: metav1.NewTime(time.Now()),
}
@@ -149,11 +149,6 @@ func (r *ReconcilePerconaXtraDBCluster) updateStatus(cr *api.PerconaXtraDBCluste
}
if len(cr.Status.Conditions) == 0 {
- clusterCondition := api.ClusterCondition{
- Status: api.ConditionTrue,
- Type: api.ClusterInit,
- LastTransitionTime: metav1.NewTime(time.Now()),
- }
cr.Status.Conditions = append(cr.Status.Conditions, clusterCondition)
} else {
lastClusterCondition := cr.Status.Conditions[len(cr.Status.Conditions)-1]
