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

[Konflux] Support registry auth for bundle build #1281

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vfreex
Copy link
Contributor

@vfreex vfreex commented Jan 17, 2025

We have to explicitly pass the registry username and password on buildvm
because the buildvm's default auth file is not for
quay.io/redhat-user-workloads/ocp-art-tenant/art-images.

Also rename oc_image_info__caching_async to
oc_image_info_async__caching for consistency.

Copy link
Contributor

openshift-ci bot commented Jan 17, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from vfreex. For more information see the 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

_, out, _ = await exectools.cmd_gather_async(cmd)
return json.loads(out)


async def oc_image_info_with_auth_async(
Copy link
Contributor

Choose a reason for hiding this comment

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

it looks like we could just define a single oc_image_info function that accepts optional auth params instead of having oc_image_info_with_auth_async fall back to oc_image_info_async in case username and password are not provided?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is possible. I was just lazy to do that. Let me check how easy or hard to change that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

@vfreex vfreex force-pushed the konflux-bundle-auth branch from 6ada77e to 2465ab6 Compare January 17, 2025 09:08
We have to explicitly pass the registry username and password on buildvm
because the buildvm's default auth file is not for
quay.io/redhat-user-workloads/ocp-art-tenant/art-images.

Also rename `oc_image_info__caching_async` to
`oc_image_info_async__caching` for consistency.
@vfreex vfreex force-pushed the konflux-bundle-auth branch from 2465ab6 to 316af39 Compare January 17, 2025 09:10
Copy link
Contributor

openshift-ci bot commented Jan 17, 2025

@vfreex: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/security 316af39 link false /test security

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-sigs/prow repository. I understand the commands that are listed here.

Copy link
Contributor

@locriandev locriandev 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 Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants