Skip to content

Commit 77c9416

Browse files
Update rust/operator-binary/src/restart_controller/statefulset.rs
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
1 parent 148d2ee commit 77c9416

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

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

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -292,12 +292,10 @@ pub async fn get_updated_restarter_annotations(
292292
.annotations
293293
.iter()
294294
.flatten()
295-
.filter(|annotation| {
296-
annotation
297-
.0
298-
.starts_with("restarter.stackable.tech/ignore-configmap.")
295+
.filter_map(|(key, value)| {
296+
key.starts_with("restarter.stackable.tech/ignore-configmap.")
297+
.then_some(value)
299298
})
300-
.map(|x| x.1)
301299
.collect::<BTreeSet<_>>();
302300
annotations.extend(
303301
cm_refs

0 commit comments

Comments
 (0)