Add a finalizer to the NSTemplateTier to prevent its deletion#1182
Add a finalizer to the NSTemplateTier to prevent its deletion#1182metlos merged 10 commits intocodeready-toolchain:masterfrom
Conversation
as long as some spaces are still derived from it.
2e0af2b to
9fb1b57
Compare
|
I saw that the e2e tests are failing here: |
|
OK, this means that we cannot leave the tier to wait for the next scheduled reconcile if it's pending deletion (in X hours). |
…ould speed up the reconciles during the cleanup process
Btw, this is the exact logic that the finalizer handling abstraction from the controller runtime would have forced us to use. |
|
but in most of the cases (if not all except for this one) we don't return an error if the CR is pending deletion because of some dependent CRs. The reason is that the other controllers watch the CRDs it depends on, this is an exception. So it's rather the logic of the finalizer you would need to implement anyway. |
|
/retest |
|
I see that the e2e tests are still failing, According to the logs it's a timing issue because the returned error triggers postponed reconcile loops with exponential increase of the time gaps. In other words, returning an error is not enough.
Anything else? |
|
/retest |
|
fbm3307
left a comment
There was a problem hiding this comment.
Great Work ,
just a curiosity question .
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fbm3307, MatousJobanek, metlos, rsoaresd The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAttention: Patch coverage is
❌ Your changes status has failed because you have indirect coverage changes. Learn more about Unexpected Coverage Changes and reasons for indirect coverage changes. Additional details and impacted files@@ Coverage Diff @@
## master #1182 +/- ##
===========================================
- Coverage 83.40% 71.24% -12.16%
===========================================
Files 82 82
Lines 7940 7984 +44
===========================================
- Hits 6622 5688 -934
- Misses 1112 2092 +980
+ Partials 206 204 -2
🚀 New features to boost your workflow:
|



Add a finalizer to the NSTemplateTier to prevent its deletion as long as some spaces are still derived from it.
Related PR:
JIRA: https://issues.redhat.com/browse/SANDBOX-1213