Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 8d3360b

Browse files
committed
Fix incorrectly setting cluster ready to true
1 parent 0a757a6 commit 8d3360b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controllers/cluster/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ func (m *MySQLController) updateClusterStatus(cluster *v1alpha1.Cluster, ss *app
470470
if condition == nil {
471471
condition = &v1alpha1.ClusterCondition{Type: v1alpha1.ClusterReady}
472472
}
473-
if ss.Status.ReadyReplicas == ss.Status.Replicas {
473+
if ss.Status.ReadyReplicas == ss.Status.Replicas && ss.Status.ReadyReplicas == cluster.Spec.Members {
474474
condition.Status = corev1.ConditionTrue
475475
} else {
476476
condition.Status = corev1.ConditionFalse

0 commit comments

Comments
 (0)