Skip to content

Commit e58f5bf

Browse files
committed
Formatting
1 parent c819477 commit e58f5bf

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,13 @@ 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(client.as_kube_client(), Reporter {
78-
controller: FULL_CONTROLLER_NAME.to_string(),
79-
instance: None,
80-
}));
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+
));
8184
controller
8285
.run(
8386
reconcile,

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,13 @@ 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(client.as_kube_client(), Reporter {
91-
controller: FULL_CONTROLLER_NAME.to_string(),
92-
instance: None,
93-
}));
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+
));
9497

9598
applier(
9699
|sts, ctx| Box::pin(reconcile(sts, ctx)),

0 commit comments

Comments
 (0)