generated from keptn-sandbox/keptn-service-template-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: Added architcture docs Signed-off-by: Christian Kreuzberger <[email protected]> * review Signed-off-by: Christian Kreuzberger <[email protected]>
- Loading branch information
1 parent
42c847b
commit 86b5315
Showing
3 changed files
with
38 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# 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](https://keptn.sh/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](architecture.png) | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.