Skip to content

Commit 9ae3ff2

Browse files
committed
chore: Use borrows
1 parent 35c2b51 commit 9ae3ff2

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

rust/operator-binary/src/controller.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,12 +1020,7 @@ fn build_server_rolegroup_daemonset(
10201020
}
10211021

10221022
if merged_config.logging.enable_vector_agent {
1023-
match opa
1024-
.spec
1025-
.cluster_config
1026-
.vector_aggregator_config_map_name
1027-
.to_owned()
1028-
{
1023+
match &opa.spec.cluster_config.vector_aggregator_config_map_name {
10291024
Some(vector_aggregator_config_map_name) => {
10301025
pb.add_container(
10311026
product_logging::framework::vector_container(
@@ -1042,7 +1037,7 @@ fn build_server_rolegroup_daemonset(
10421037
.with_memory_request("128Mi")
10431038
.with_memory_limit("128Mi")
10441039
.build(),
1045-
&vector_aggregator_config_map_name,
1040+
vector_aggregator_config_map_name,
10461041
)
10471042
.context(ConfigureLoggingSnafu)?,
10481043
);

0 commit comments

Comments
 (0)