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

RHTAPSRE-469: Webhook configuration based on repo url #257

Merged
merged 1 commit into from
Mar 24, 2024

Conversation

gbenhaim
Copy link
Member

@gbenhaim gbenhaim commented Mar 14, 2024

Allow to configure the webhook target url based on the repository url of the component by providing a config file.

Configuring the webhook target url using environment variable has precedence.

In case that no config file or environment variable for configuring the webhook target are provided, the PAC route will be used (same as before this change).

An example use case would be for a cluster that sits behind a firewall, and need to receive webhooks from SCMs outside of the firewall (through a relay service) and also from SCMs within the firewall, in this case the webhooks can be emitted directly to the PAC endpoint on the cluster, instead of the relay service.

Allow to configure the webhook target url based on the repository
url of the component by providing a config file.

Configuring the webhook target url using environment variable has
precedence.

In case that no config file or environment variable for configuring
the webhook target are provided, the PAC route will be used (same
as before this change).

Signed-off-by: gbenhaim <[email protected]>
@gbenhaim gbenhaim requested review from mmorhun and chmeliik March 14, 2024 21:22
@openshift-ci openshift-ci bot requested a review from psturc March 14, 2024 21:22
Copy link

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
6.0% Duplication on New Code

See analysis details on SonarCloud

@gbenhaim
Copy link
Member Author

/test build-service-e2e

@mmorhun
Copy link
Collaborator

mmorhun commented Mar 19, 2024

@gbenhaim could you also explain in the PR description for which use cases this functionality is needed?

@gbenhaim
Copy link
Member Author

@mmorhun done

Copy link
Collaborator

@mmorhun mmorhun left a comment

Choose a reason for hiding this comment

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

You'll have to reference changes from redhat-appstudio/application-service#450 before merging

@openshift-ci openshift-ci bot added the lgtm label Mar 21, 2024
@gbenhaim gbenhaim merged commit 7d2450d into konflux-ci:main Mar 24, 2024
14 checks passed
@gbenhaim
Copy link
Member Author

You'll have to reference changes from redhat-appstudio/application-service#450 before merging

Those two PRs are not dependent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants