Skip to content

Commit ceac434

Browse files
Merge branch 'feat/ignore-restarter' of github.com:stackabletech/commons-operator into feat/ignore-restarter
2 parents 195a67d + 77c9416 commit ceac434

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)