-
Notifications
You must be signed in to change notification settings - Fork 65
✨ Update Installed status condition handling #1314
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
✨ Update Installed status condition handling #1314
Conversation
✅ Deploy Preview for olmv1 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
a7841e0
to
6dcc6f8
Compare
installedBundle, _ := r.InstalledBundleGetter.GetInstalledBundle(ctx, ext) | ||
if installedBundle == nil { | ||
setInstallStatus(ext, nil) | ||
setInstalledStatusConditionFailed(ext, err.Error()) |
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 know we talked about this about during our sync yesterday, but wanted to pose the question here as well in case other maintainers have opinions on it:
Do we need to set the Installed condition to False here and overwrite any errors that may exist in it with the finalizer error?
My feeling is that we do not need to do this as a user may want to still be able to see the original failed installation message. We already set the Progressing condition with the finalizer error so I think that should be sufficient here.
Additionally, if the Installed condition did not previously exist, I don't think there is any reason to set it here. Non-existent Installed condition should be interpreted as "Unknown".
Maybe a more fundamental question (that popped into my head as I was typing ^) - if there is no reason for us to change any of the status related to installation of the extension can we just remove any logic to do with the installed status from the finalizer error handling?
6dcc6f8
to
f6c0f36
Compare
7500b15
to
a752bfa
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1314 +/- ##
==========================================
+ Coverage 75.76% 75.95% +0.19%
==========================================
Files 40 41 +1
Lines 2430 2429 -1
==========================================
+ Hits 1841 1845 +4
+ Misses 415 411 -4
+ Partials 174 173 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
4a49a29
to
ba2d504
Compare
ba2d504
to
faaa36c
Compare
Signed-off-by: Tayler Geiger <[email protected]>
faaa36c
to
7783af5
Compare
Description
Updates Installed status condition per status condition RFC. Closes #1291.
Reviewer Checklist