0.3.15 • Published 12 days ago

@frontside/backstage-plugin-humanitec v0.3.15

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
12 days ago

@frontside/backstage-plugin-humanitec

@frontside/backstage-plugin-humanitec is a work-in-progress plugin for the backstage frontend. It will display all of the different environments plus its pods and external dependencies of the workloads you specify.

Installation

First install the plugin to your backstage app:

yarn workspace app @frontside/backstage-plugin-humanitec

Import HumanitecPage and add it as a route (./packages/app/src/App.tsx):

+ import { HumanitecPage } from '@frontside/backstage-plugin-humanitec';
...
const routes = (
  <FlatRoutes>
    ...
+   <Route path="/humanitec" element={<HumanitecPage />}/>
  </FlatRoutes>
)

Then in your Entity Page (./packages/app/src/components/catalog/EntityPage.tsx) add the HumanitecCardComponent:

+ import { HumanitecCardComponent } from '@frontside/backstage-plugin-humanitec';
...
const overviewContent = (
  <Grid container>
    ...
+   <Grid item>
+     <HumanitecCardComponent />
+   </Grid>
  </Grid>
)

This will create a Humanitec section for all of your Backstage Components. This is just a temporary solution; we'll eventually create a separate page for Humanitec components.

Create a yaml file to specify the workloads you want to display:

# ./catalog-humanitec-workloads.yaml
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: name-of-application-workload # 🚨 CHANGE
  description: Humanitec Workload Environments
  annotations:
    "humanitec.com/orgId": "my-humanitec-organization" # 🚨 CHANGE
    "humanitec.com/appId": "my-humanitec-application" # 🚨 CHANGE
spec:
  type: service
  owner: john@example.com
  lifecycle: experimental

Lastly in your ./app-config.yaml, add the proxy for humanitec and create a new catalog locations entry for the file you just created:

proxy:
+  '/humanitec':
+    target: 'https://api.humanitec.io'
+    headers:
+      Authorization: ${HUMANITEC_TOKEN}
catalog:
  locations:
+    - type: file
+      target: ../../catalog-humanitec-workloads.yaml

When you start your backstage app be sure to pass in HUMANITEC_TOKEN that you must generate from your Humanitec dashboard.

0.3.15

1 month ago

0.3.14

4 months ago

0.3.13

4 months ago

0.3.12

5 months ago

0.3.11

6 months ago

0.3.10

8 months ago

0.3.9

12 months ago

0.3.8

1 year ago

0.3.6

1 year ago

0.3.7

1 year ago

0.3.5

1 year ago

0.3.2

2 years ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.4

2 years ago

0.1.0

2 years ago