11use std:: {
22 collections:: BTreeMap ,
3- sync:: { atomic:: AtomicBool , Arc } ,
3+ sync:: { Arc , atomic:: AtomicBool } ,
44 time:: Duration ,
55} ;
66
7- use futures:: { stream , Stream , StreamExt , TryStream } ;
7+ use futures:: { Stream , StreamExt , TryStream , stream } ;
88use serde_json:: json;
99use snafu:: { ResultExt , Snafu } ;
1010use stackable_operator:: {
@@ -15,19 +15,19 @@ use stackable_operator::{
1515 } ,
1616 kube,
1717 kube:: {
18+ Resource , ResourceExt ,
1819 api:: { PartialObjectMeta , Patch , PatchParams } ,
19- core:: { error_boundary , DeserializeGuard , DynamicObject } ,
20+ core:: { DeserializeGuard , DynamicObject , error_boundary } ,
2021 runtime:: {
21- applier,
22- controller:: { trigger_self , trigger_with , Action , ReconcileRequest } ,
22+ Config , WatchStreamExt , applier,
23+ controller:: { Action , ReconcileRequest , trigger_self , trigger_with } ,
2324 events:: { Recorder , Reporter } ,
2425 metadata_watcher, reflector,
2526 reflector:: { ObjectRef , Store } ,
26- watcher, Config , WatchStreamExt ,
27+ watcher,
2728 } ,
28- Resource , ResourceExt ,
2929 } ,
30- logging:: controller:: { report_controller_reconciled , ReconcilerError } ,
30+ logging:: controller:: { ReconcilerError , report_controller_reconciled } ,
3131 namespace:: WatchNamespace ,
3232} ;
3333use strum:: { EnumDiscriminants , IntoStaticStr } ;
@@ -87,13 +87,10 @@ pub async fn start(client: &Client, watch_namespace: &WatchNamespace) {
8787 let secret_store = reflector:: store:: Writer :: < PartialObjectMeta < Secret > > :: new ( ( ) ) ;
8888 let cms_inited = Arc :: new ( AtomicBool :: from ( false ) ) ;
8989 let secrets_inited = Arc :: new ( AtomicBool :: from ( false ) ) ;
90- let event_recorder = Arc :: new ( Recorder :: new (
91- client. as_kube_client ( ) ,
92- Reporter {
93- controller : FULL_CONTROLLER_NAME . to_string ( ) ,
94- instance : None ,
95- } ,
96- ) ) ;
90+ let event_recorder = Arc :: new ( Recorder :: new ( client. as_kube_client ( ) , Reporter {
91+ controller : FULL_CONTROLLER_NAME . to_string ( ) ,
92+ instance : None ,
93+ } ) ) ;
9794
9895 applier (
9996 |sts, ctx| Box :: pin ( reconcile ( sts, ctx) ) ,
0 commit comments