From 974dde41d5966584031c5947473d8487f0224fc0 Mon Sep 17 00:00:00 2001 From: Mike Rostermund Date: Wed, 23 Oct 2024 14:43:01 +0200 Subject: [PATCH] wait until notReadyCount=0 before marking cluster as Running --- controllers/humiocluster_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/humiocluster_controller.go b/controllers/humiocluster_controller.go index b9062f09..a974eb57 100644 --- a/controllers/humiocluster_controller.go +++ b/controllers/humiocluster_controller.go @@ -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() {