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
[OCPNODE-1258] Support both icsp and idms #346
Conversation
/hold |
/hold cancel |
/hold |
@dmage 4.13 branch is open, this is ready for review. I have rebased this branch, not sure why the ci failed. Could you help take a look? |
/unassign @dmage |
@QiWang19 please rebase. Let's see if the test failures persist afterwards. |
failure TestPullThroughIDMS: https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_image-registry/346/pull-ci-openshift-image-registry-master-e2e-agnostic-image-registry/1612831060893110272 |
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.
Looks pretty good, thanks for doing this.
Left a few comments, please take a look.
|
||
if len(icspList.Items) > 0 && len(idmsList.Items) > 0 { | ||
klog.Errorf("error finding both icsp and idms resources at the same time: %s", err) | ||
return []reference.DockerImageReference{ref.AsRepository()}, nil |
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 think we should surface an error here so that this doesn't go unnoticed to the caller.
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.
Addressed this in line68 and line73.
@QiWang19 I'm not sure about your failing test. You can try running it against your own cluster with
|
Thanks! I will try running the test to make sure the code in this patch is correct. |
The error is
But this test reuses most of |
@QiWang19 the error seems to be from image streams, did you implement IDMS for image streams? (they live inside openshift/openshift-apiserver) |
Thanks. @dmage @flavianmissi |
@QiWang19 I suspect that Relatedly, I see that openshift/openshift-apiserver#318 adds support for both |
The PR openshift/openshift-apiserver#318 was failing to launch a 4.13 cluster, I will continue to retest the integration test.
@flavianmissi Current image-registry only looks up icsp objects that supports only the digest image pull. I didn't know if the image-registry want to add the |
/retest-required |
that makes sense.
that seems to be the best course of action for now. can you add it to this PR then? |
I think master is open to 4.14 development now @QiWang19 🎉 |
@flavianmissi Thanks for letting me know about the development for the next release. ❤️ |
@flavianmissi I rebased openshift/openshift-apiserver#318, do you know which part of the ci script is related to this PR for the pre-merge test? |
@QiWang19 what job are you talking about? openshift/release has a special logic with ICSP for "disconnected" clusters, which is not specific to the image-registry repo nor openshift-apiserver. |
1 similar comment
@QiWang19 what job are you talking about? openshift/release has a special logic with ICSP for "disconnected" clusters, which is not specific to the image-registry repo nor openshift-apiserver. |
@dmage This PR failed the test cases creating IDMS objects because the ci cluster has an existing ICSP objects. I am thinking about updating the openshft/release script can change the existing ICSP object to IDMS object so this PR can pass the test.
So the openshift/release logic with ICSP does not rely on image-registry? |
@QiWang19 The latest test results for this PR are few months old and don't seem to be related to this PR. |
@dmage I just remembered your comment we should openshift/openshift-apiserver#318 should get this in first. Can we merge that or that PR still needs to hold for pre-merge testing? I rebased that 3 weeks ago. |
@QiWang19 FYI, the rebase is merged. |
Signed-off-by: Qi Wang <qiwan@redhat.com>
Signed-off-by: Qi Wang <qiwan@redhat.com>
@QiWang19: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
@flavianmissi I rebased after openshift/openshift-apiserver#318 merged. Can we get this in? |
/hold cancel |
@dmage Can we get this in? |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dmage, QiWang19 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 |
Append ImageDigestMirrorSet to current ImageContentSourcePolicy. The OCPNODE-521 will land new CRDs for image mirror configurations to replace ICSP in the future release.
ImageDigestMirrorSet implemented: openshift/machine-config-operator#3037
ImageDigestMirrorSet epic: https://issues.redhat.com/browse/OCPNODE-521