Skip to content

Commit

Permalink
Merge pull request #13 from spectrocloud/microk8s-66
Browse files Browse the repository at this point in the history
Upgrade Microk8s from 0.65 to 0.66
  • Loading branch information
Kun483 authored Mar 13, 2024
2 parents dfd1329 + dc023e3 commit fbff92f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions controllers/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,12 @@ func (r *MicroK8sControlPlaneReconciler) updateStatus(ctx context.Context, mcp *
if len(nodes.Items) > 0 {
mcp.Status.Initialized = true
conditions.MarkTrue(mcp, clusterv1beta1.AvailableCondition)
}

if mcp.Status.ReadyReplicas > 0 {
// The control plane is Ready to receive requests
mcp.Status.Ready = true
}

logger.WithValues("count", mcp.Status.ReadyReplicas).Info("ready replicas")
logger.WithValues("ready", mcp.Status.Ready, "count", mcp.Status.ReadyReplicas).Info("ready replicas")

return nil
}
Expand Down

0 comments on commit fbff92f

Please sign in to comment.