Skip to content

Commit

Permalink
Especially double check when bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
eberlep committed Jul 12, 2024
1 parent 054ba69 commit 5d3ca54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/postgres_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1041,7 +1041,7 @@ func (r *PostgresReconciler) checkAndUpdatePatroniReplicationConfig(log logr.Log
if len(leaderPods.Items) != 1 {
log.V(debugLogLevel).Info("expected exactly one leader pod, selecting all spilo pods as a last resort (might be ok if it is still creating)")
// To make sure any updates to the Zalando postgresql manifest are written, we do not requeue in this case
return allDone, r.updatePatroniReplicationConfigOnAllPods(log, ctx, instance)
return requeueAfterReconcile, r.updatePatroniReplicationConfigOnAllPods(log, ctx, instance)
}
leaderIP := leaderPods.Items[0].Status.PodIP

Expand Down

0 comments on commit 5d3ca54

Please sign in to comment.