-
Notifications
You must be signed in to change notification settings - Fork 247
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
nfd-gc: Remove stale NRT objects #1700
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ozhuraki The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @ozhuraki. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-nfd ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/ok-to-test |
Thanks! Updated, please take a look |
Updated unit tests, please take a look |
@ozhuraki @ArangoGutierrez one question, if we upgrade NFD-gc on existing cluster with this feature, it would remove all NRTs in the cluster cause none of them, has the |
@PiotrProkop I updated it so that NRT is garbage collected only when it has label, please take a look. |
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.
Thanks @ozhuraki for the PR. A few comments from me below.
@PiotrProkop PTAL
@marquiz |
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.
Thanks for the update @ozhuraki. I identified a few possible race issues but those shouldn't be too hard to solve.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1700 +/- ##
==========================================
- Coverage 39.84% 39.52% -0.33%
==========================================
Files 80 80
Lines 6841 7170 +329
==========================================
+ Hits 2726 2834 +108
- Misses 3861 4075 +214
- Partials 254 261 +7
|
Thanks for the help here and apologies, missed your comments. Updated per your suggestion to solve the race and rebased, please take a look |
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
9bc556d
to
17d3891
Compare
17d3891
to
7ec08c0
Compare
Remove stale NRT objects whose creator pod does not exist anymore. Signed-off-by: Oleg Zhurakivskyy <[email protected]>
7ec08c0
to
b5fee22
Compare
Thanks for the useful input. Updated, please take a look |
Remove stale NRT objects whose creator pod does not exist anymore.
Closes #1586