-
Notifications
You must be signed in to change notification settings - Fork 373
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
pkg/installation: reorder receipt save & install() #237
pkg/installation: reorder receipt save & install() #237
Conversation
Looks like we didn't address the code review comment at kubernetes-sigs#195 (comment). Copying the conversation from there: > This is better because: > > - actually installing a plugin (extract files, symlink binary) but then failing > to store the receipt is okay (at most you'd be leaking some files) > - claiming the plugin is installed (i.e. receipt exists) while it's not > installed is not okay. > - tens of things can go wrong in `install()`, much fewer things can go wrong > in `receipt.Store()`, so makes sense to do it last. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Codecov Report
@@ Coverage Diff @@
## master #237 +/- ##
======================================
Coverage 53.6% 53.6%
======================================
Files 16 16
Lines 735 735
======================================
Hits 394 394
Misses 289 289
Partials 52 52
Continue to review full report at Codecov.
|
Woops, sorry. Looks like I was reordering the uninstall procedure instead of the install procedure (7e7cf0b). Do you want to swap the uninstall order back to original? |
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
Done. PTAL. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, corneliusweig The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Looks like we didn't address the code review comment at
#195 (comment).
Copying the conversation from there:
/assign @corneliusweig
/kind cleanup