From 7332e314ba1c41f8769f910656d335d274b48cd5 Mon Sep 17 00:00:00 2001 From: Techassi Date: Mon, 16 Oct 2023 10:22:14 +0200 Subject: [PATCH] Use operator-rs DUration (#401) --- rust/operator-binary/src/hbase_controller.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/operator-binary/src/hbase_controller.rs b/rust/operator-binary/src/hbase_controller.rs index 105156f5..3c55bf1c 100644 --- a/rust/operator-binary/src/hbase_controller.rs +++ b/rust/operator-binary/src/hbase_controller.rs @@ -27,6 +27,7 @@ use stackable_operator::{ product_image_selection::ResolvedProductImage, rbac::{build_rbac_resources, service_account_name}, }, + duration::Duration, k8s_openapi::{api::core::v1::Volume, DeepMerge}, k8s_openapi::{ api::{ @@ -65,7 +66,6 @@ use std::{ collections::{BTreeMap, HashMap}, str::FromStr, sync::Arc, - time::Duration, }; use strum::{EnumDiscriminants, IntoStaticStr}; @@ -890,7 +890,7 @@ where } pub fn error_policy(_obj: Arc, _error: &Error, _ctx: Arc) -> Action { - Action::requeue(Duration::from_secs(5)) + Action::requeue(*Duration::from_secs(5)) } pub fn build_recommended_labels<'a>(