Skip to content

Commit 88998b4

Browse files
authored
Revert some format changes (anvil-verifier#438)
Signed-off-by: Xudong Sun <[email protected]>
1 parent f077082 commit 88998b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+340
-114
lines changed

src/controller_examples/fluent_controller/fluentbit/exec/reconciler.rs

+24-8
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use crate::fluent_controller::fluentbit::exec::resource::*;
66
use crate::fluent_controller::fluentbit::model::reconciler as model_reconciler;
77
use crate::fluent_controller::fluentbit::model::resource as model_resource;
88
use crate::fluent_controller::fluentbit::trusted::{exec_types::*, spec_types, step::*};
9-
use crate::kubernetes_api_objects::exec::resource::ResourceWrapper;
109
use crate::kubernetes_api_objects::exec::prelude::*;
10+
use crate::kubernetes_api_objects::exec::resource::ResourceWrapper;
1111
use crate::reconciler::exec::{io::*, reconciler::*, resource_builder::*};
1212
use crate::reconciler::spec::resource_builder::ResourceBuilder as SpecResourceBuilder;
1313
use crate::vstd_ext::{string_map::StringMap, string_view::*};
@@ -20,14 +20,22 @@ pub struct FluentBitReconciler {}
2020
impl Reconciler<FluentBit, FluentBitReconcileState, EmptyType, EmptyType, EmptyAPIShimLayer> for FluentBitReconciler {
2121
open spec fn well_formed(fb: &FluentBit) -> bool { fb@.well_formed() }
2222

23-
fn reconcile_init_state() -> FluentBitReconcileState { reconcile_init_state() }
23+
fn reconcile_init_state() -> FluentBitReconcileState {
24+
reconcile_init_state()
25+
}
2426

25-
fn reconcile_core(fb: &FluentBit, resp_o: Option<Response<EmptyType>>, state: FluentBitReconcileState)
26-
-> (FluentBitReconcileState, Option<Request<EmptyType>>) { reconcile_core(fb, resp_o, state) }
27+
fn reconcile_core(fb: &FluentBit, resp_o: Option<Response<EmptyType>>, state: FluentBitReconcileState)
28+
-> (FluentBitReconcileState, Option<Request<EmptyType>>) {
29+
reconcile_core(fb, resp_o, state)
30+
}
2731

28-
fn reconcile_done(state: &FluentBitReconcileState) -> bool { reconcile_done(state) }
32+
fn reconcile_done(state: &FluentBitReconcileState) -> bool {
33+
reconcile_done(state)
34+
}
2935

30-
fn reconcile_error(state: &FluentBitReconcileState) -> bool { reconcile_error(state) }
36+
fn reconcile_error(state: &FluentBitReconcileState) -> bool {
37+
reconcile_error(state)
38+
}
3139
}
3240

3341
impl Default for FluentBitReconciler {
@@ -190,7 +198,11 @@ pub fn reconcile_helper<
190198
let next_state = Builder::state_after_create(fb, resp_o.unwrap().into_k_response().into_create_response().res.unwrap(), state.clone());
191199
if next_state.is_ok() {
192200
let (state_prime, req) = next_state.unwrap();
193-
let req_o = if req.is_some() { Some(Request::KRequest(req.unwrap())) } else { None };
201+
let req_o = if req.is_some() {
202+
Some(Request::KRequest(req.unwrap()))
203+
} else {
204+
None
205+
};
194206
return (state_prime, req_o);
195207
}
196208
}
@@ -208,7 +220,11 @@ pub fn reconcile_helper<
208220
let next_state = Builder::state_after_update(fb, resp_o.unwrap().into_k_response().into_update_response().res.unwrap(), state.clone());
209221
if next_state.is_ok() {
210222
let (state_prime, req) = next_state.unwrap();
211-
let req_o = if req.is_some() { Some(Request::KRequest(req.unwrap())) } else { None };
223+
let req_o = if req.is_some() {
224+
Some(Request::KRequest(req.unwrap()))
225+
} else {
226+
None
227+
};
212228
return (state_prime, req_o);
213229
}
214230
}

src/controller_examples/fluent_controller/fluentbit/exec/resource/daemon_set.rs

+11-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ verus! {
2424
pub struct DaemonSetBuilder {}
2525

2626
impl ResourceBuilder<FluentBit, FluentBitReconcileState, model_resource::DaemonSetBuilder> for DaemonSetBuilder {
27-
open spec fn requirements(fb: FluentBitView) -> bool { fb.well_formed() }
27+
open spec fn requirements(fb: FluentBitView) -> bool {
28+
fb.well_formed()
29+
}
2830

2931
fn get_request(fb: &FluentBit) -> KubeGetRequest {
3032
KubeGetRequest {
@@ -34,7 +36,9 @@ impl ResourceBuilder<FluentBit, FluentBitReconcileState, model_resource::DaemonS
3436
}
3537
}
3638

37-
fn make(fb: &FluentBit, state: &FluentBitReconcileState) -> Result<DynamicObject, ()> { Ok(make_daemon_set(fb).marshal()) }
39+
fn make(fb: &FluentBit, state: &FluentBitReconcileState) -> Result<DynamicObject, ()> {
40+
Ok(make_daemon_set(fb).marshal())
41+
}
3842

3943
fn update(fb: &FluentBit, state: &FluentBitReconcileState, obj: DynamicObject) -> Result<DynamicObject, ()> {
4044
let ds = DaemonSet::unmarshal(obj);
@@ -254,7 +258,11 @@ fn make_fluentbit_pod_spec(fb: &FluentBit) -> (pod_spec: PodSpec)
254258
} else {
255259
Vec::new()
256260
};
257-
let metrics_port = if fb.spec().metrics_port().is_some() { fb.spec().metrics_port().unwrap() } else { 2020 };
261+
let metrics_port = if fb.spec().metrics_port().is_some() {
262+
fb.spec().metrics_port().unwrap()
263+
} else {
264+
2020
265+
};
258266
ports.push(ContainerPort::new_with(new_strlit("metrics").to_string(), metrics_port));
259267
proof {
260268
assert_seqs_equal!(

src/controller_examples/fluent_controller/fluentbit/exec/resource/role.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ verus! {
2525
pub struct RoleBuilder {}
2626

2727
impl ResourceBuilder<FluentBit, FluentBitReconcileState, model_resource::RoleBuilder> for RoleBuilder {
28-
open spec fn requirements(fb: FluentBitView) -> bool { fb.well_formed() }
28+
open spec fn requirements(fb: FluentBitView) -> bool {
29+
fb.well_formed()
30+
}
2931

3032
fn get_request(fb: &FluentBit) -> KubeGetRequest {
3133
KubeGetRequest {
@@ -35,7 +37,9 @@ impl ResourceBuilder<FluentBit, FluentBitReconcileState, model_resource::RoleBui
3537
}
3638
}
3739

38-
fn make(fb: &FluentBit, state: &FluentBitReconcileState) -> Result<DynamicObject, ()> { Ok(make_role(fb).marshal()) }
40+
fn make(fb: &FluentBit, state: &FluentBitReconcileState) -> Result<DynamicObject, ()> {
41+
Ok(make_role(fb).marshal())
42+
}
3943

4044
fn update(fb: &FluentBit, state: &FluentBitReconcileState, obj: DynamicObject) -> Result<DynamicObject, ()> {
4145
let role = Role::unmarshal(obj);

src/controller_examples/fluent_controller/fluentbit/exec/resource/role_binding.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ verus! {
2727
pub struct RoleBindingBuilder {}
2828

2929
impl ResourceBuilder<FluentBit, FluentBitReconcileState, model_resource::RoleBindingBuilder> for RoleBindingBuilder {
30-
open spec fn requirements(fb: FluentBitView) -> bool { fb.well_formed() }
30+
open spec fn requirements(fb: FluentBitView) -> bool {
31+
fb.well_formed()
32+
}
3133

3234
fn get_request(fb: &FluentBit) -> KubeGetRequest {
3335
KubeGetRequest {
@@ -37,7 +39,9 @@ impl ResourceBuilder<FluentBit, FluentBitReconcileState, model_resource::RoleBin
3739
}
3840
}
3941

40-
fn make(fb: &FluentBit, state: &FluentBitReconcileState) -> Result<DynamicObject, ()> { Ok(make_role_binding(fb).marshal()) }
42+
fn make(fb: &FluentBit, state: &FluentBitReconcileState) -> Result<DynamicObject, ()> {
43+
Ok(make_role_binding(fb).marshal())
44+
}
4145

4246
fn update(fb: &FluentBit, state: &FluentBitReconcileState, obj: DynamicObject) -> Result<DynamicObject, ()> {
4347
let rb = RoleBinding::unmarshal(obj);

src/controller_examples/fluent_controller/fluentbit/exec/resource/service.rs

+10-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ verus! {
2525
pub struct ServiceBuilder {}
2626

2727
impl ResourceBuilder<FluentBit, FluentBitReconcileState, model_resource::ServiceBuilder> for ServiceBuilder {
28-
open spec fn requirements(fb: FluentBitView) -> bool { fb.well_formed() }
28+
open spec fn requirements(fb: FluentBitView) -> bool {
29+
fb.well_formed()
30+
}
2931

3032
fn get_request(fb: &FluentBit) -> KubeGetRequest {
3133
KubeGetRequest {
@@ -35,7 +37,9 @@ impl ResourceBuilder<FluentBit, FluentBitReconcileState, model_resource::Service
3537
}
3638
}
3739

38-
fn make(fb: &FluentBit, state: &FluentBitReconcileState) -> Result<DynamicObject, ()> { Ok(make_service(fb).marshal()) }
40+
fn make(fb: &FluentBit, state: &FluentBitReconcileState) -> Result<DynamicObject, ()> {
41+
Ok(make_service(fb).marshal())
42+
}
3943

4044
fn update(fb: &FluentBit, state: &FluentBitReconcileState, obj: DynamicObject) -> Result<DynamicObject, ()> {
4145
let service = Service::unmarshal(obj);
@@ -122,7 +126,9 @@ pub fn make_service(fb: &FluentBit) -> (service: Service)
122126
metadata.set_labels({
123127
if fb.spec().service_labels().len() > 0 {
124128
fb.spec().service_labels()
125-
} else { make_labels(fb) }
129+
} else {
130+
make_labels(fb)
131+
}
126132
});
127133
metadata.set_annotations(fb.spec().service_annotations());
128134

@@ -217,7 +223,7 @@ fn make_new_ports(ports: Vec<ContainerPort>) -> (service_ports: Vec<ServicePort>
217223
Seq::new(ports@.len(), |k: int| model_resource::make_service_port(ports[k]@))
218224
);
219225
}
220-
226+
221227
service_ports
222228
}
223229

src/controller_examples/fluent_controller/fluentbit/exec/resource/service_account.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ verus! {
2525
pub struct ServiceAccountBuilder {}
2626

2727
impl ResourceBuilder<FluentBit, FluentBitReconcileState, model_resource::ServiceAccountBuilder> for ServiceAccountBuilder {
28-
open spec fn requirements(fb: FluentBitView) -> bool { fb.well_formed() }
28+
open spec fn requirements(fb: FluentBitView) -> bool {
29+
fb.well_formed()
30+
}
2931

3032
fn get_request(fb: &FluentBit) -> KubeGetRequest {
3133
KubeGetRequest {
@@ -35,7 +37,9 @@ impl ResourceBuilder<FluentBit, FluentBitReconcileState, model_resource::Service
3537
}
3638
}
3739

38-
fn make(fb: &FluentBit, state: &FluentBitReconcileState) -> Result<DynamicObject, ()> { Ok(make_service_account(fb).marshal()) }
40+
fn make(fb: &FluentBit, state: &FluentBitReconcileState) -> Result<DynamicObject, ()> {
41+
Ok(make_service_account(fb).marshal())
42+
}
3943

4044
fn update(fb: &FluentBit, state: &FluentBitReconcileState, obj: DynamicObject) -> Result<DynamicObject, ()> {
4145
let sa = ServiceAccount::unmarshal(obj);

src/controller_examples/fluent_controller/fluentbit/model/reconciler.rs

+13-5
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,22 @@ verus! {
1515
impl Reconciler<FluentBitView, EmptyAPI> for FluentBitReconciler {
1616
type T = FluentBitReconcileState;
1717

18-
open spec fn reconcile_init_state() -> FluentBitReconcileState { reconcile_init_state() }
18+
open spec fn reconcile_init_state() -> FluentBitReconcileState {
19+
reconcile_init_state()
20+
}
1921

20-
open spec fn reconcile_core(fb: FluentBitView, resp_o: Option<ResponseView<EmptyTypeView>>, state: FluentBitReconcileState)
21-
-> (FluentBitReconcileState, Option<RequestView<EmptyTypeView>>) { reconcile_core(fb, resp_o, state) }
22+
open spec fn reconcile_core(fb: FluentBitView, resp_o: Option<ResponseView<EmptyTypeView>>, state: FluentBitReconcileState)
23+
-> (FluentBitReconcileState, Option<RequestView<EmptyTypeView>>) {
24+
reconcile_core(fb, resp_o, state)
25+
}
2226

23-
open spec fn reconcile_done(state: FluentBitReconcileState) -> bool { reconcile_done(state) }
27+
open spec fn reconcile_done(state: FluentBitReconcileState) -> bool {
28+
reconcile_done(state)
29+
}
2430

25-
open spec fn reconcile_error(state: FluentBitReconcileState) -> bool { reconcile_error(state) }
31+
open spec fn reconcile_error(state: FluentBitReconcileState) -> bool {
32+
reconcile_error(state)
33+
}
2634

2735
open spec fn expect_from_user(obj: DynamicObjectView) -> bool { obj.kind == SecretView::kind() /* expect the user might create some secret object */ }
2836
}

src/controller_examples/fluent_controller/fluentbit/model/resource/daemon_set.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ verus! {
2020
pub struct DaemonSetBuilder {}
2121

2222
impl ResourceBuilder<FluentBitView, FluentBitReconcileState> for DaemonSetBuilder {
23-
open spec fn get_request(fb: FluentBitView) -> GetRequest { GetRequest { key: make_daemon_set_key(fb) } }
23+
open spec fn get_request(fb: FluentBitView) -> GetRequest {
24+
GetRequest { key: make_daemon_set_key(fb) }
25+
}
2426

25-
open spec fn make(fb: FluentBitView, state: FluentBitReconcileState) -> Result<DynamicObjectView, ()> { Ok(make_daemon_set(fb).marshal()) }
27+
open spec fn make(fb: FluentBitView, state: FluentBitReconcileState) -> Result<DynamicObjectView, ()> {
28+
Ok(make_daemon_set(fb).marshal())
29+
}
2630

2731
open spec fn update(fb: FluentBitView, state: FluentBitReconcileState, obj: DynamicObjectView) -> Result<DynamicObjectView, ()> {
2832
let ds = DaemonSetView::unmarshal(obj);

src/controller_examples/fluent_controller/fluentbit/model/resource/role.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ verus! {
2020
pub struct RoleBuilder {}
2121

2222
impl ResourceBuilder<FluentBitView, FluentBitReconcileState> for RoleBuilder {
23-
open spec fn get_request(fb: FluentBitView) -> GetRequest { GetRequest { key: make_role_key(fb) } }
23+
open spec fn get_request(fb: FluentBitView) -> GetRequest {
24+
GetRequest { key: make_role_key(fb) }
25+
}
2426

25-
open spec fn make(fb: FluentBitView, state: FluentBitReconcileState) -> Result<DynamicObjectView, ()> { Ok(make_role(fb).marshal()) }
27+
open spec fn make(fb: FluentBitView, state: FluentBitReconcileState) -> Result<DynamicObjectView, ()> {
28+
Ok(make_role(fb).marshal())
29+
}
2630

2731
open spec fn update(fb: FluentBitView, state: FluentBitReconcileState, obj: DynamicObjectView) -> Result<DynamicObjectView, ()> {
2832
let role = RoleView::unmarshal(obj);

src/controller_examples/fluent_controller/fluentbit/model/resource/role_binding.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,13 @@ verus! {
2121
pub struct RoleBindingBuilder {}
2222

2323
impl ResourceBuilder<FluentBitView, FluentBitReconcileState> for RoleBindingBuilder {
24-
open spec fn get_request(fb: FluentBitView) -> GetRequest { GetRequest { key: make_role_binding_key(fb) } }
24+
open spec fn get_request(fb: FluentBitView) -> GetRequest {
25+
GetRequest { key: make_role_binding_key(fb) }
26+
}
2527

26-
open spec fn make(fb: FluentBitView, state: FluentBitReconcileState) -> Result<DynamicObjectView, ()> { Ok(make_role_binding(fb).marshal()) }
28+
open spec fn make(fb: FluentBitView, state: FluentBitReconcileState) -> Result<DynamicObjectView, ()> {
29+
Ok(make_role_binding(fb).marshal())
30+
}
2731

2832
open spec fn update(fb: FluentBitView, state: FluentBitReconcileState, obj: DynamicObjectView) -> Result<DynamicObjectView, ()> {
2933
let rb = RoleBindingView::unmarshal(obj);

src/controller_examples/fluent_controller/fluentbit/model/resource/service.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@ verus! {
2020
pub struct ServiceBuilder {}
2121

2222
impl ResourceBuilder<FluentBitView, FluentBitReconcileState> for ServiceBuilder {
23-
open spec fn get_request(fb: FluentBitView) -> GetRequest { GetRequest { key: make_service_key(fb) } }
23+
open spec fn get_request(fb: FluentBitView) -> GetRequest {
24+
GetRequest { key: make_service_key(fb) }
25+
}
2426

25-
open spec fn make(fb: FluentBitView, state: FluentBitReconcileState) -> Result<DynamicObjectView, ()> { Ok(make_service(fb).marshal()) }
27+
open spec fn make(fb: FluentBitView, state: FluentBitReconcileState) -> Result<DynamicObjectView, ()> {
28+
Ok(make_service(fb).marshal())
29+
}
2630

2731
open spec fn update(fb: FluentBitView, state: FluentBitReconcileState, obj: DynamicObjectView) -> Result<DynamicObjectView, ()> {
2832
let service = ServiceView::unmarshal(obj);

src/controller_examples/fluent_controller/fluentbit/model/resource/service_account.rs

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ verus! {
1818
pub struct ServiceAccountBuilder {}
1919

2020
impl ResourceBuilder<FluentBitView, FluentBitReconcileState> for ServiceAccountBuilder {
21-
open spec fn get_request(fb: FluentBitView) -> GetRequest { GetRequest { key: make_service_account_key(fb) } }
21+
open spec fn get_request(fb: FluentBitView) -> GetRequest {
22+
GetRequest { key: make_service_account_key(fb) }
23+
}
2224

23-
open spec fn make(fb: FluentBitView, state: FluentBitReconcileState) -> Result<DynamicObjectView, ()> { Ok(make_service_account(fb).marshal()) }
25+
open spec fn make(fb: FluentBitView, state: FluentBitReconcileState) -> Result<DynamicObjectView, ()> {
26+
Ok(make_service_account(fb).marshal())
27+
}
2428

2529
open spec fn update(fb: FluentBitView, state: FluentBitReconcileState, obj: DynamicObjectView) -> Result<DynamicObjectView, ()> {
2630
let sa = ServiceAccountView::unmarshal(obj);

src/controller_examples/fluent_controller/fluentbit_config/exec/reconciler.rs

+24-8
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ use crate::fluent_controller::fluentbit_config::exec::resource::*;
66
use crate::fluent_controller::fluentbit_config::model::reconciler as model_reconciler;
77
use crate::fluent_controller::fluentbit_config::model::resource as model_resource;
88
use crate::fluent_controller::fluentbit_config::trusted::{exec_types::*, spec_types, step::*};
9-
use crate::kubernetes_api_objects::exec::resource::ResourceWrapper;
109
use crate::kubernetes_api_objects::exec::prelude::*;
10+
use crate::kubernetes_api_objects::exec::resource::ResourceWrapper;
1111
use crate::reconciler::exec::{io::*, reconciler::*, resource_builder::*};
1212
use crate::reconciler::spec::resource_builder::ResourceBuilder as SpecResourceBuilder;
1313
use crate::vstd_ext::{string_map::StringMap, string_view::*};
@@ -20,14 +20,22 @@ pub struct FluentBitConfigReconciler {}
2020
impl Reconciler<FluentBitConfig, FluentBitConfigReconcileState, EmptyType, EmptyType, EmptyAPIShimLayer> for FluentBitConfigReconciler {
2121
open spec fn well_formed(fbc: &FluentBitConfig) -> bool { fbc@.well_formed() }
2222

23-
fn reconcile_init_state() -> FluentBitConfigReconcileState { reconcile_init_state() }
23+
fn reconcile_init_state() -> FluentBitConfigReconcileState {
24+
reconcile_init_state()
25+
}
2426

25-
fn reconcile_core(fbc: &FluentBitConfig, resp_o: Option<Response<EmptyType>>, state: FluentBitConfigReconcileState)
26-
-> (FluentBitConfigReconcileState, Option<Request<EmptyType>>) { reconcile_core(fbc, resp_o, state) }
27+
fn reconcile_core(fbc: &FluentBitConfig, resp_o: Option<Response<EmptyType>>, state: FluentBitConfigReconcileState)
28+
-> (FluentBitConfigReconcileState, Option<Request<EmptyType>>) {
29+
reconcile_core(fbc, resp_o, state)
30+
}
2731

28-
fn reconcile_done(state: &FluentBitConfigReconcileState) -> bool { reconcile_done(state) }
32+
fn reconcile_done(state: &FluentBitConfigReconcileState) -> bool {
33+
reconcile_done(state)
34+
}
2935

30-
fn reconcile_error(state: &FluentBitConfigReconcileState) -> bool { reconcile_error(state) }
36+
fn reconcile_error(state: &FluentBitConfigReconcileState) -> bool {
37+
reconcile_error(state)
38+
}
3139
}
3240

3341
impl Default for FluentBitConfigReconciler {
@@ -157,7 +165,11 @@ pub fn reconcile_helper<
157165
let next_state = Builder::state_after_create(fbc, resp_o.unwrap().into_k_response().into_create_response().res.unwrap(), state.clone());
158166
if next_state.is_ok() {
159167
let (state_prime, req) = next_state.unwrap();
160-
let req_o = if req.is_some() { Some(Request::KRequest(req.unwrap())) } else { None };
168+
let req_o = if req.is_some() {
169+
Some(Request::KRequest(req.unwrap()))
170+
} else {
171+
None
172+
};
161173
return (state_prime, req_o);
162174
}
163175
}
@@ -175,7 +187,11 @@ pub fn reconcile_helper<
175187
let next_state = Builder::state_after_update(fbc, resp_o.unwrap().into_k_response().into_update_response().res.unwrap(), state.clone());
176188
if next_state.is_ok() {
177189
let (state_prime, req) = next_state.unwrap();
178-
let req_o = if req.is_some() { Some(Request::KRequest(req.unwrap())) } else { None };
190+
let req_o = if req.is_some() {
191+
Some(Request::KRequest(req.unwrap()))
192+
} else {
193+
None
194+
};
179195
return (state_prime, req_o);
180196
}
181197
}

src/controller_examples/fluent_controller/fluentbit_config/exec/resource/secret.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ impl ResourceBuilder<FluentBitConfig, FluentBitConfigReconcileState, model_resou
3434
}
3535
}
3636

37-
fn make(fbc: &FluentBitConfig, state: &FluentBitConfigReconcileState) -> Result<DynamicObject, ()> { Ok(make_secret(fbc).marshal()) }
37+
fn make(fbc: &FluentBitConfig, state: &FluentBitConfigReconcileState) -> Result<DynamicObject, ()> {
38+
Ok(make_secret(fbc).marshal())
39+
}
3840

3941
fn update(fbc: &FluentBitConfig, state: &FluentBitConfigReconcileState, obj: DynamicObject) -> Result<DynamicObject, ()> {
4042
let secret = Secret::unmarshal(obj);

0 commit comments

Comments
 (0)