Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 844 Bytes

ARCHITECTURE.md

File metadata and controls

31 lines (22 loc) · 844 Bytes

Architecture

Keptn-Gitea-Provisioner-Service is a microservice with a simple job: When a Keptn project without an upstream is created, it creates a git repo and a token on a (remote) Gitea installation, and return the Git Remote URL, username and token, e.g.:

Request

POST /repository
{
    "project": "foobar",
    "namespace": "keptn"
}

Response

{
    "gitRemoteUrl": "http://gitea-server:3000/xyz/foobar.git",
    "gitUser": "xyz",
    "gitToken": "<secret-token>"
}

See Keptn API: Repository - addInstance for more information.

In addition, Keptn-Gitea-Provisioner-Service is also responsible for deleting the upstream repository in Gitea when a Keptn project with an automatic provisioned upstream is deleted.

Diagram

Architecture