MIXEDARCH-353: Add yq-v4 to the upi-installer image for CI and copy yq3 from a previous stage's manifest-list image#7567
Conversation
|
@aleskandro: This pull request references MIXEDARCH-353 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.15.0" version, but no target version was set. DetailsIn 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. |
|
/cc @jianlinliu Hi @r4f4 , I'm not sure the way I'm doing the (per-arch) integrity verification is the best in terms of multi-arch enablement... Any suggestions? /cc @r4f4 |
A few observations:
Your change works for @patrickdillon any opinions, suggestions? |
The step may be run in arm64 or amd64 build farm, but the yq command in the step is using a hard-code yq binary name, it would be hard to be compatible with different arch of build farms, right? |
Mmm, I'm against that as it moves the logic to handle the arch of the binary from build time to runtime. My main concern is about the integrity verification with the hash as I needed to add another build arg (
All right, if you think #7507 could land before this, I can remove the changes to the rhel7 image dockerfile.
Yeah, this is interesting. I'll check if the |
With openshift/installer#7567, the upi-installer image will depend on the quay.io/multi-arch/yq image to install those binaries in compliance with the architecture of the built image.
|
@aleskandro: This pull request references MIXEDARCH-353 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.15.0" version, but no target version was set. DetailsIn 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. |
|
Blocked by #7507 Depends on openshift/release#44166 /hold |
|
/jira refresh |
|
@aleskandro: This pull request references MIXEDARCH-353 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.15.0" version, but it targets "openshift-4.15" instead. DetailsIn 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. |
|
Hi @jeffdyoung @tvardema , we would check-in While on this issue, I would download the binaries for yq3 and yq4 according to the architecture of the built image. Rafael suggested using an intermediate stage based on a multi-arch image with these binaries to streamline the issue more easily than (1) downloading the proper binary according to the result of Using an intermediate-stage multi-arch image will allow us to delegate the integrity check to the image registry facilities and the build process of the consumed images. However, while Therefore, the Refer to only 69e391e74d83a4acdb0468bcab397579f1b1104b (and openshift/release#44166) for review. This PR will need rebase once the other, including the first commit, lands. |
…ous stage's manifest-list image While new steps are being implemented in Prow, users may want to pivot to yq-v4. This commit installs yq-v4 in the upi-installer image. Moreover, by copying the yq-v3 and yq-v4 binaries from previous stages based on manifest-list images, we guarantee the yq binaries are the ones for the architecture of the upi image being built.
|
/unhold |
|
/retest-required |
1 similar comment
|
/retest-required |
|
/test e2e-gcp-ovn e2e-azure-ovn |
|
/retest-required |
With openshift/installer#7567, the upi-installer image will depend on the quay.io/multi-arch/yq image to install those binaries in compliance with the architecture of the built image.
|
/retest-required |
|
/assign @sadasu |
|
/override ci/prow/e2e-azure-ovn-upi |
|
@r4f4: Overrode contexts on behalf of r4f4: ci/prow/e2e-azure-ovn-upi DetailsIn 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. |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sadasu The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest-required |
|
/test e2e-aws-ovn e2e-aws-ovn-upi e2e-azure-ovn-upi |
|
@aleskandro: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
|
/retest-required |
|
/override ci/prow/e2e-azure-ovn-upi ci/prow/e2e-gcp-ovn-upi |
|
@r4f4: Overrode contexts on behalf of r4f4: ci/prow/e2e-azure-ovn-upi, ci/prow/e2e-gcp-ovn-upi DetailsIn 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. |
While new steps are being implemented in Prow, users may want to pivot to yq-v4. This commit installs yq-v4 in the upi-installer image.
Moreover, by copying the yq-v3 and yq-v4 binaries from previous stages based on manifest-list images, we guarantee the yq binaries are the ones for the architecture of the upi image being built.