Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Wait for at least one available replicas of node manager
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmxs committed Mar 28, 2022
1 parent 3cfa1be commit 3933349
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controllers/storageoscluster/node-manager_operand.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ func (c *NodeManagerOperand) ReadyCheck(ctx context.Context, obj client.Object)
return false, err
}

if nodeManagerDep.Status.Replicas > 0 {
log.V(4).Info("Found more than 0 replicas", "Replicas", nodeManagerDep.Status.Replicas)
if nodeManagerDep.Status.AvailableReplicas > 0 {
log.Info("Found available replicas more than 0", "availableReplicas", nodeManagerDep.Status.Replicas)
return true, nil
}

Expand Down

0 comments on commit 3933349

Please sign in to comment.