-
Notifications
You must be signed in to change notification settings - Fork 239
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
change to log image ref value when resolving name
#1032
change to log image ref value when resolving name
#1032
Conversation
Hi @acornett21. Thanks for your PR. I'm waiting for a operator-framework 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/test-infra repository. |
e0eb823
to
f22f6c3
Compare
/ok-to-test |
Could you also add a unit test which captures the scenario where resolution fails? It feels like an important edge case. |
…be empty in error scenario Signed-off-by: Adam D. Cornett <adc@redhat.com>
f22f6c3
to
4fd00ef
Compare
@grokspawn It looks like there were already test cases for this, I was just unsure on how to run them. They are now updated and passing locally. |
Codecov Report
@@ Coverage Diff @@
## master #1032 +/- ##
==========================================
+ Coverage 51.95% 51.96% +0.01%
==========================================
Files 102 102
Lines 9215 9215
==========================================
+ Hits 4788 4789 +1
+ Misses 3514 3513 -1
Partials 913 913
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: acornett21, grokspawn 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 |
Description of the change:
Updating error log when calling
Resolve
method to logref.String()
since if there is an errorname
will benil
and the logging an empty value is not helpful for troubleshooting.Motivation for the change:
When running
opm add index
whenResolve
fails, sincename
is nil the log message does not indicate which registry there is an issue with. Which leads to trying to trouble shoot is it the registry where the index resides, or the registry where the bundle exists (since in alot of cases these are different).Reviewer Checklist
/docs