Skip to content

Conversation

@soltysh
Copy link

@soltysh soltysh commented Jun 7, 2021

This is followup to #1084 fixing:

  • setting insecure properly for blobMirroredRepository
  • return proper error if no alternates found
  • unit tests for the above two
  • replace golang.org/x/net/context with built-in context package

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 7, 2021
@openshift-ci openshift-ci bot requested review from deads2k and sttts June 7, 2021 12:07
@soltysh soltysh changed the title WIP: image/registryclient: set insecure blobMirroredRepository image/registryclient: set insecure blobMirroredRepository Jun 7, 2021
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 7, 2021
@dmage
Copy link
Contributor

dmage commented Jun 7, 2021

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 7, 2021
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Jun 7, 2021
}
if len(alternates) == 0 {
return attemptErr
}
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks correct but now I want to see a unit test for it. This is the real loop we need to have unit tests on anyway.

if err != nil {
return err
}
if len(alternates) == 0 {
Copy link
Author

Choose a reason for hiding this comment

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

@soltysh soltysh changed the title image/registryclient: set insecure blobMirroredRepository image/registryclient: set insecure and return early in blobMirroredRepository Jun 8, 2021
@soltysh
Copy link
Author

soltysh commented Jun 8, 2021

@dmage @ricardomaraschini @smarterclayton this should be ready for final review

Copy link
Contributor

@ricardomaraschini ricardomaraschini left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 8, 2021
@dmage
Copy link
Contributor

dmage commented Jun 8, 2021

/assign @smarterclayton

@dmage
Copy link
Contributor

dmage commented Jun 8, 2021

/retest

@soltysh
Copy link
Author

soltysh commented Jun 8, 2021

/test unit

1 similar comment
@soltysh
Copy link
Author

soltysh commented Jun 8, 2021

/test unit

@smarterclayton
Copy link
Contributor

/lgtm
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 9, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dmage, ricardomaraschini, smarterclayton, soltysh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 9, 2021
@openshift-merge-robot openshift-merge-robot merged commit 1c98092 into openshift:master Jun 9, 2021
@soltysh soltysh deleted the insecure branch June 9, 2021 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants