Skip to content

Commit 87d8d8d

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 <[email protected]>
1 parent 16bcf51 commit 87d8d8d

File tree

1 file changed

+0
-1
lines changed
  • operator-pipeline-images/operatorcert/webhook_dispatcher

1 file changed

+0
-1
lines changed

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)