Skip to content
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

[redhat-3.11] fix: nil check http response when err is not nil (PROJQUAY-6620) #116

Conversation

openshift-cherrypick-robot
Copy link
Collaborator

This is an automated cherry-pick of #111

/assign arborite-rh

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]>
Copy link
Contributor

@arborite-rh arborite-rh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@arborite-rh
Copy link
Contributor

/approve

Copy link
Contributor

openshift-ci bot commented Mar 6, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: arborite-rh, openshift-cherrypick-robot
Once this PR has been reviewed and has the lgtm label, please assign jonathankingfc for approval. For more information see the Kubernetes Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@dmage dmage merged commit 24f3c51 into quay:redhat-3.11 Mar 8, 2024
1 of 2 checks passed
@dmage
Copy link
Contributor

dmage commented Mar 8, 2024

/cherrypick redhat-3.10

@openshift-cherrypick-robot
Copy link
Collaborator Author

@dmage: new pull request created: #118

In response to this:

/cherrypick redhat-3.10

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

3 participants