Skip to content

Commit

Permalink
Retry when Redpanda Pod is being deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
RafalKorepta committed Dec 2, 2024
1 parent bf33e74 commit b8d2988
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions operator/pkg/resources/statefulset_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,10 @@ func (r *StatefulSetResource) podEviction(ctx context.Context, pod, artificialPo
ignoreExistingVolumes(newVolumes),
}

if pod.DeletionTimestamp != nil {
return &RequeueAfterError{RequeueAfter: RequeueDuration, Msg: "waiting for pod to be deleted"}
}

managedDecommission, err := r.IsManagedDecommission()
if err != nil {
log.Error(err, "not performing a managed decommission")
Expand Down

0 comments on commit b8d2988

Please sign in to comment.