Skip to content

Commit a16bc19

Browse files
committed
Formatting
1 parent e58f5bf commit a16bc19

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,10 @@ pub async fn start(client: &Client, watch_namespace: &WatchNamespace) {
7474
watch_namespace.get_api::<PartialObjectMeta<Pod>>(client),
7575
watcher::Config::default(),
7676
);
77-
let event_recorder = Arc::new(Recorder::new(
78-
client.as_kube_client(),
79-
Reporter {
80-
controller: FULL_CONTROLLER_NAME.to_string(),
81-
instance: None,
82-
},
83-
));
77+
let event_recorder = Arc::new(Recorder::new(client.as_kube_client(), Reporter {
78+
controller: FULL_CONTROLLER_NAME.to_string(),
79+
instance: None,
80+
}));
8481
controller
8582
.run(
8683
reconcile,

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)