Skip to content

Commit 5dbed41

Browse files
authored
fix: workaround for long certificate lifetimes (#363)
1 parent 066712d commit 5dbed41

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file.
2020
by `FILE_LOG_DIRECTORY` (or via `--file-log-directory <DIRECTORY>`).
2121
- Replace stackable-operator `print_startup_string` with `tracing::info!` with fields.
2222
- Version CRDs and bump dependencies ([#353]).
23+
- Limit rescheduling delay to a maximum of 6 months ([#363]).
2324

2425
### Fixed
2526

@@ -30,6 +31,7 @@ All notable changes to this project will be documented in this file.
3031
[#344]: https://github.com/stackabletech/commons-operator/pull/344
3132
[#349]: https://github.com/stackabletech/commons-operator/pull/349
3233
[#353]: https://github.com/stackabletech/commons-operator/pull/353
34+
[#363]: https://github.com/stackabletech/commons-operator/pull/363
3335

3436
## [25.3.0] - 2025-03-21
3537

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

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

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

0 commit comments

Comments
 (0)