We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 066712d commit cabe783Copy full SHA for cabe783
rust/operator-binary/src/restart_controller/pod.rs
@@ -174,6 +174,9 @@ async fn reconcile(pod: Arc<PartialObjectMeta<Pod>>, ctx: Arc<Ctx>) -> Result<Ac
174
}
175
176
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 = time_until_pod_expires.min(Duration::from_secs(6 * 30 * 24 * 60 * 60));
180
tracing::info!(
181
pod.expires_at = ?pod_expires_at,
182
recheck_delay = ?time_until_pod_expires,
0 commit comments