weaveworks / pipeline-controller

This repository contains the Pipeline CRD and associated controller for Weave GitOps Enterprise.
1 stars 4 forks source link

Add environment promotion webhook server #29

Closed makkes closed 2 years ago

makkes commented 2 years ago

A new web server is spun up as part of the manager binary that serves as a webhook to initiate an environment promotion. It serves requests at /promotion/{namespace}/{name}/{environment} and consumes events.Events.

It compares the event from the request payload with the Pipeline resource identified by the request path and calls the injected promotion strategy implementation. The only strategy implemented right now is a noop.

Successful execution of the strategy leads to a 201 or 204 HTTP status code.

Minor changes:

closes #30

makkes commented 2 years ago

@yiannistri @bigkevmcd Thanks for your reviews! I addressed all your comments and added subsequent commits for easier reviewing. I'll squash those into one once we're good to merge.