Skip to content

Commit

Permalink
wait until notReadyCount=0 before marking cluster as Running
Browse files Browse the repository at this point in the history
  • Loading branch information
SaaldjorMike committed Oct 23, 2024
1 parent 2ffc263 commit 974dde4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/humiocluster_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1864,6 +1864,7 @@ func (r *HumioClusterReconciler) ensureMismatchedPodsAreDeleted(ctx context.Cont
// when no more changes are needed, update state to Running
if hnp.GetState() != humiov1alpha1.HumioClusterStateRunning &&
podsStatus.podRevisionCountMatchesNodeCountAndAllPodsHaveRevision(hnp.GetDesiredPodRevision()) &&
podsStatus.notReadyCount == 0 &&
!podsStatus.waitingOnPods() &&
!desiredLifecycleState.FoundConfigurationDifference() &&
!desiredLifecycleState.FoundVersionDifference() {
Expand Down

0 comments on commit 974dde4

Please sign in to comment.