Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/keptn-sandbox/backstage-plugin-keptn

Backstage plugin for Keptn
https://github.com/keptn-sandbox/backstage-plugin-keptn

backstage backstage-plugin keptn

Last synced: 3 days ago
JSON representation

Backstage plugin for Keptn

Awesome Lists containing this project

README

        

# Backstage Plugin Keptn

Welcome to the keptn plugin!

## Installation steps

```
yarn add @krateo/backstage-plugin-keptn
```

Add proxy config to the app-config.yaml file

```
proxy:
"/keptn-api":
target: http:///api/v1/
secure: false
headers:
x-token: KEPTN_API_AUTH_TOKEN

"/keptn":
target: http://bridge/api/
secure: false
headers:
Authorization: "Basic KEPTN_AUTH_TOKEN"
```

```
// packages/app/src/plugins.ts
export { keptnPlugin } from '@krateo/backstage-plugin-keptn';
```

Add keptn widget to your overview page

```
import {
EntityKeptnProjectCard,
EntityKeptnServiceCard,
isKeptnProjectAvailable,
isKeptnServiceAvailable,
EntityKeptnContent,
} from '@krateo/backstage-plugin-keptn';

const overviewContent = (

...







...

);

const serviceEntityPage = (

...



...

);

const systemPage = (


...









...


);
```

Add annotation to the yaml config file of a component

```
metadata:
annotations:
keptn.sh/project:
keptn.sh/service:
```

Get and provide env variables in following format

```
KEPTN_API_AUTH_TOKEN: is the token that is generated by the kpetn-api
KEPTN_AUTH_TOKEN: token for keptn ui. username:password in base64 (commonly is keptn:)
```

## How it looks

### System

![image description](https://github.com/krateoplatformops/backstage-plugin-keptn/blob/main/docs/system.png?raw=true)

### Component Overview

![image description](https://github.com/krateoplatformops/backstage-plugin-keptn/blob/main/docs/overview.png?raw=true)

### Keptn Tab

![image description](https://github.com/krateoplatformops/backstage-plugin-keptn/blob/main/docs/tab.png?raw=true)