Skip to content

Commit

Permalink
Use operator-rs Duration (#333)
Browse files Browse the repository at this point in the history
  • Loading branch information
Techassi authored Oct 16, 2023
1 parent a83adac commit 41d4e5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/operator-binary/src/airflow_controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ use stackable_operator::{
product_image_selection::ResolvedProductImage,
rbac::build_rbac_resources,
},
duration::Duration,
k8s_openapi::{
api::{
apps::v1::{StatefulSet, StatefulSetSpec},
Expand Down Expand Up @@ -73,7 +74,6 @@ use std::{
collections::{BTreeMap, HashMap},
str::FromStr,
sync::Arc,
time::Duration,
};
use strum::{EnumDiscriminants, IntoEnumIterator, IntoStaticStr};

Expand Down Expand Up @@ -1305,7 +1305,7 @@ fn build_static_envs() -> Vec<EnvVar> {
}

pub fn error_policy(_obj: Arc<AirflowCluster>, _error: &Error, _ctx: Arc<Ctx>) -> Action {
Action::requeue(Duration::from_secs(5))
Action::requeue(*Duration::from_secs(5))
}

fn add_authentication_volumes_and_volume_mounts(
Expand Down

0 comments on commit 41d4e5c

Please sign in to comment.