Skip to content

Commit 736297d

Browse files
committed
run precommit hooks
1 parent ceaa6b4 commit 736297d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/types/v1alpha1/tenant/workloads.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,10 @@ impl Tenant {
249249
node_selector: pool.scheduling.node_selector.clone(),
250250
affinity: pool.scheduling.affinity.clone(),
251251
tolerations: pool.scheduling.tolerations.clone(),
252-
topology_spread_constraints: pool.scheduling.topology_spread_constraints.clone(),
252+
topology_spread_constraints: pool
253+
.scheduling
254+
.topology_spread_constraints
255+
.clone(),
253256
..Default::default()
254257
}),
255258
},
@@ -430,8 +433,14 @@ mod tests {
430433
fn test_pool_resources_applied_to_container() {
431434
let mut tenant = super::super::tests::create_test_tenant(None, None);
432435
let mut requests = std::collections::BTreeMap::new();
433-
requests.insert("cpu".to_string(), k8s_openapi::apimachinery::pkg::api::resource::Quantity("4".to_string()));
434-
requests.insert("memory".to_string(), k8s_openapi::apimachinery::pkg::api::resource::Quantity("16Gi".to_string()));
436+
requests.insert(
437+
"cpu".to_string(),
438+
k8s_openapi::apimachinery::pkg::api::resource::Quantity("4".to_string()),
439+
);
440+
requests.insert(
441+
"memory".to_string(),
442+
k8s_openapi::apimachinery::pkg::api::resource::Quantity("16Gi".to_string()),
443+
);
435444

436445
tenant.spec.pools[0].scheduling.resources = Some(corev1::ResourceRequirements {
437446
requests: Some(requests.clone()),

0 commit comments

Comments
 (0)