Skip to content

Commit 17abd27

Browse files
committed
Add code for webhook dispatcher
A dispatcher is a new component to manage incoming webhooks from Github. It accept new requests and manage a queue based on cluster capacity. A capacity is defined as a number of running pipelines in certain namespace. This simple metrics will provide a buffer mechanism for time periods when we receive a bunk releases of operators. The mechanism keeps pending requests in the database queue and only trigger related pipeline in case of free capacity. The solution is made of: - Rest API - Postgres database - Dispatcher - Capacity manager JIRA: ISV-6108 Signed-off-by: Ales Raszka <araszka@redhat.com>
1 parent 442c40f commit 17abd27

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

  • operator-pipeline-images/operatorcert/webhook_dispatcher

operator-pipeline-images/operatorcert/webhook_dispatcher/api.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ def github_pipeline_webhook() -> Any:
6767
if isinstance(result, tuple):
6868
LOGGER.debug("GitHub webhook validation failed: %s", result)
6969
return jsonify(result[0]), result[1]
70-
7170
webhook_event = convert_to_webhook_event(payload, request)
7271
if webhook_event is None:
7372
return jsonify({"status": "rejected", "message": "Unsupported event"}), 400

0 commit comments

Comments
 (0)