-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix: nil check http response when err is not nil (PROJQUAY-6620) #111
Conversation
Reviews in this chain: |
Topic: projquay-6620 The operator was panicking due to the httpResponse being nil and attempting to return the httpResponse.StatusCode in the response; the response was most likely nil due to a prior error when attempting to marshal json and build the http request itself. This now allows the error to be propagated out to the logs instead of causing the operator to panic fix: addtl nil checking http responses chore: lint_controllers chore: lint quay client Signed-off-by: Ross Bryan <[email protected]>
d0f1208
to
c39e6d2
Compare
/lgtm |
@arborite-rh: you cannot LGTM your own PR. In response to this:
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: arborite-rh, dmage 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 |
@dmage mind /lgtm this for me 😄 ? |
/cherrypick redhat-3.12 |
@arborite-rh: new pull request could not be created: failed to create pull request against quay/quay-bridge-operator#redhat-3.12 from head openshift-cherrypick-robot:cherry-pick-111-to-redhat-3.12: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"No commits between quay:redhat-3.12 and openshift-cherrypick-robot:cherry-pick-111-to-redhat-3.12"}],"documentation_url":"https://docs.github.com/rest/pulls/pulls#create-a-pull-request"} In response to this:
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. |
/cherrypick redhat-3.11 |
@arborite-rh: new pull request created: #116 In response to this:
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. |
Topic: projquay-6620
The operator was panicking due to the httpResponse being nil and attempting to return the httpResponse.StatusCode in the response; the response was most likely nil due to a prior error when attempting to marshal json and build the http request itself. This now allows the error to be propagated out to the logs instead of causing the operator to panic
fix: addtl nil checking http responses
chore: lint_controllers
chore: lint quay client
Signed-off-by: Ross Bryan [email protected]