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

builder: add support for proxying requests to composer #96

Merged
merged 2 commits into from
May 2, 2022

Conversation

ondrejbudai
Copy link
Member

@ondrejbudai ondrejbudai commented Apr 21, 2022

We need koji-osbuild-builder to be able to connect to composer via a proxy
because koji builders in our internal deployment cannot reach
api.openshift.com directly. This commit adds a new option proxy to the
builder plugin config that controls whether a proxy is used to route all
requests to composer.

I'm not sure if the integration test that I designed will work, will see. 🤷 I'm open to suggestions.

@ondrejbudai
Copy link
Member Author

Ok, I'm finally happy with the test coverage, this is ready to be reviewed now. :)

@ondrejbudai ondrejbudai requested a review from gicmo April 29, 2022 10:05
@ondrejbudai ondrejbudai marked this pull request as ready for review April 29, 2022 10:05
teg
teg previously approved these changes Apr 29, 2022
Copy link
Member

@teg teg left a comment

Choose a reason for hiding this comment

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

Looking good! Thank you :)

Copy link
Contributor

@gicmo gicmo left a comment

Choose a reason for hiding this comment

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

Looks good, thanks! One small nit, but not important.

plugins/builder/osbuild.py Outdated Show resolved Hide resolved
We need koji-osbuild-builder to be able to connect to composer via a proxy
because koji builders in our internal deployment cannot reach
api.openshift.com directly. This commit adds a new option `proxy` to the
builder plugin config that controls whether a proxy is used to route all
requests to composer.
Copy link
Contributor

@gicmo gicmo left a comment

Choose a reason for hiding this comment

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

❤️

@gicmo gicmo merged commit d8c9332 into osbuild:main May 2, 2022
@ondrejbudai ondrejbudai deleted the proxy branch May 2, 2022 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants