Skip to content

Commit

Permalink
Wait until all pods for the current node pool is up and in sync befor…
Browse files Browse the repository at this point in the history
…e marking node pool state Running
  • Loading branch information
SaaldjorMike committed Oct 22, 2024
1 parent 8c630ba commit 8a3bea7
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 @@ -1863,6 +1863,7 @@ func (r *HumioClusterReconciler) ensureMismatchedPodsAreDeleted(ctx context.Cont

// when no more changes are needed, update state to Running
if hnp.GetState() != humiov1alpha1.HumioClusterStateRunning &&
podsStatus.podRevisionCountMatchesNodeCountAndAllPodsHaveTheSameRevision() &&
!podsStatus.waitingOnPods() &&
!desiredLifecycleState.FoundConfigurationDifference() &&
!desiredLifecycleState.FoundVersionDifference() {
Expand Down

0 comments on commit 8a3bea7

Please sign in to comment.