Skip to content

Commit 06cc21f

Browse files
ensure we don't run the reconciler for resources that are being deleted
1 parent 16ef17b commit 06cc21f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/controller.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ pub trait Context {
357357
})
358358
.await
359359
.map_err(Error::FinalizerError)
360-
} else {
360+
} else if resource.meta().deletion_timestamp.is_none() {
361361
ran = true;
362362
event!(
363363
Level::INFO,
@@ -374,6 +374,8 @@ pub trait Context {
374374
} else {
375375
self.success_action(&resource)
376376
})
377+
} else {
378+
Ok(Action::await_change())
377379
};
378380
if !ran {
379381
event!(

0 commit comments

Comments
 (0)