-
Notifications
You must be signed in to change notification settings - Fork 48
[slice] Remove Slice finalizer, once all Pods in the Workload have gracefully terminated. #517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
de1e59a
to
0a23e95
Compare
992a005
to
04c024c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, just a couple of nits.
fe2e251
to
c4469a5
Compare
e215bda
to
bedab10
Compare
LGTM cc: @PBundyra |
e038b46
to
d3c3bd0
Compare
f42798a
to
f8fd426
Compare
@gabesaba, I've addressed all your comments. Could you please take a look? |
f8fd426
to
511ad08
Compare
Overall LGTM, left a few more small comments. |
4c60461
to
6535835
Compare
6535835
to
d8d4db5
Compare
d8d4db5
to
f2765c8
Compare
556b5b2
to
81e8c64
Compare
4377f2c
to
24c88ba
Compare
finalize, _ := shouldFinalize(wl) | ||
return !finalize && validateRelevantWorkload(wl) == nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the intention of this logic? Could you add a comment please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But maybe the Predicate is no longer needed — we check this in the Reconcile() function. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if we just simplify the filter, and return true always - for each event type (besides generic)? It looks like the handler itself will handle any workload just fine. This will make it easier to debug too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it’s the same whether we use a predicate or just return true, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I’ve reverted the changes related to the Predicate. But if you think we still need to return true, I can revert it again.
24c88ba
to
4cc0760
Compare
4cc0760
to
0f97a57
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, this looks great. Thank you for all the revisions :)
Fixes / Features