Skip to content

Commit dcc2060

Browse files
committed
chore: Remove workaround for limiting rescheduling delay
1 parent 1db94fc commit dcc2060

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ All notable changes to this project will be documented in this file.
1717
- Reduce severity of Pod eviction errors. Previously, the operator would produce lot's of
1818
`Cannot evict pod as it would violate the pod's disruption budget` errors. With this fix, the
1919
error is reduced to an info instead ([#372]).
20+
- Remove workaround for limiting rescheduling delay ([#378]).
2021

2122
[#372]: https://github.com/stackabletech/commons-operator/pull/372
2223
[#376]: https://github.com/stackabletech/commons-operator/pull/376
2324
[#377]: https://github.com/stackabletech/commons-operator/pull/377
25+
[#378]: https://github.com/stackabletech/commons-operator/pull/378
2426

2527
## [25.7.0] - 2025-07-23
2628

rust/operator-binary/src/restart_controller/pod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ async fn reconcile(pod: Arc<PartialObjectMeta<Pod>>, ctx: Arc<Ctx>) -> Result<Ac
172172
}
173173

174174
Some(Ok(time_until_pod_expires)) => {
175-
// Clamp the rescheduling delay to a maximum of 6 months to prevent `Action::requeue` from panicking
176-
// This workaround can be removed once https://github.com/kube-rs/kube/issues/1772 is resolved
177-
let time_until_pod_expires =
178-
time_until_pod_expires.min(Duration::from_secs(6 * 30 * 24 * 60 * 60));
179175
tracing::info!(
180176
pod.expires_at = ?pod_expires_at,
181177
recheck_delay = ?time_until_pod_expires,

0 commit comments

Comments
 (0)