File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -1099,12 +1099,7 @@ fn build_broker_rolegroup_statefulset(
1099
1099
1100
1100
// Add vector container after kafka container to keep the defaulting into kafka container
1101
1101
if merged_config. logging . enable_vector_agent {
1102
- match kafka
1103
- . spec
1104
- . cluster_config
1105
- . vector_aggregator_config_map_name
1106
- . to_owned ( )
1107
- {
1102
+ match & kafka. spec . cluster_config . vector_aggregator_config_map_name {
1108
1103
Some ( vector_aggregator_config_map_name) => {
1109
1104
pod_builder. add_container (
1110
1105
product_logging:: framework:: vector_container (
@@ -1118,7 +1113,7 @@ fn build_broker_rolegroup_statefulset(
1118
1113
. with_memory_request ( "128Mi" )
1119
1114
. with_memory_limit ( "128Mi" )
1120
1115
. build ( ) ,
1121
- & vector_aggregator_config_map_name,
1116
+ vector_aggregator_config_map_name,
1122
1117
)
1123
1118
. context ( ConfigureLoggingSnafu ) ?,
1124
1119
) ;
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ fn references_config_map(
237
237
} ;
238
238
239
239
kafka. spec . cluster_config . zookeeper_config_map_name == config_map. name_any ( )
240
- || match kafka. spec . cluster_config . authorization . opa . to_owned ( ) {
240
+ || match & kafka. spec . cluster_config . authorization . opa {
241
241
Some ( opa_config) => opa_config. config_map_name == config_map. name_any ( ) ,
242
242
None => false ,
243
243
}
You can’t perform that action at this time.
0 commit comments