-
Notifications
You must be signed in to change notification settings - Fork 24
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
2a09b21
to
6ada77e
Compare
doozer/doozerlib/util.py
Outdated
_, out, _ = await exectools.cmd_gather_async(cmd) | ||
return json.loads(out) | ||
|
||
|
||
async def oc_image_info_with_auth_async( |
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.
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?
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.
That is possible. I was just lazy to do that. Let me check how easy or hard to change that.
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.
Updated
6ada77e
to
2465ab6
Compare
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.
2465ab6
to
316af39
Compare
@vfreex: The following test failed, say
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. |
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.
/lgtm
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
tooc_image_info_async__caching
for consistency.