Skip to content

Commit

Permalink
Remove the missing process setup
Browse files Browse the repository at this point in the history
  • Loading branch information
johscheuer committed Nov 7, 2023
1 parent 9870df1 commit 75b89f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/update_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,8 @@ func checkAndSetProcessStatus(logger logr.Logger, r *FoundationDBClusterReconcil
}

processStatus := processMap[processID]
// If a Pod has a deletion timestamp, we assume the process is missing, as the Pod with the process(es) will be removed soon.
if !hasMissingProcesses {
hasMissingProcesses = len(processStatus) == 0 || !pod.ObjectMeta.DeletionTimestamp.IsZero()
hasMissingProcesses = len(processStatus) == 0
}

if len(processStatus) == 0 {
Expand Down

0 comments on commit 75b89f5

Please sign in to comment.