Skip to content

Commit

Permalink
backstage: add plugin lighthouse
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Login <batazor@evrone.com>
  • Loading branch information
batazor committed Feb 14, 2023
1 parent 52a2af1 commit c7e3186
Show file tree
Hide file tree
Showing 9 changed files with 84 additions and 1 deletion.
3 changes: 3 additions & 0 deletions internal/services/backstage/app-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ app:
- url: https://github.com/shortlink-org/shortlink/releases
title: ShortLink Release

lighthouse:
baseUrl: https://shortlink.best

kubernetes:
serviceLocatorMethod:
type: 'multiTenant'
Expand Down
1 change: 1 addition & 0 deletions internal/services/backstage/packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"@backstage/plugin-catalog-react": "^1.2.4",
"@backstage/plugin-github-actions": "^0.5.14",
"@backstage/plugin-kubernetes": "^0.7.7",
"@backstage/plugin-lighthouse": "^0.4.0",
"@backstage/plugin-org": "^0.6.4",
"@backstage/plugin-permission-react": "^0.4.9",
"@backstage/plugin-scaffolder": "^1.10.1",
Expand Down
2 changes: 2 additions & 0 deletions internal/services/backstage/packages/app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { NextScaffolderPage, scaffolderPlugin } from '@backstage/plugin-scaffold
import { orgPlugin } from '@backstage/plugin-org';
import { SearchPage } from '@backstage/plugin-search';
import { TechRadarPage } from '@backstage/plugin-tech-radar';
import { LighthousePage } from '@backstage/plugin-lighthouse';
import {
TechDocsIndexPage,
techdocsPlugin,
Expand Down Expand Up @@ -75,6 +76,7 @@ const routes = (
<FlatRoutes>
<Route path="/" element={<Navigate to="catalog" />} />
<Route path="/catalog" element={<CatalogIndexPage />} />
<Route path="/lighthouse" element={<LighthousePage />} />
<Route
path="/catalog/:namespace/:kind/:name"
element={<CatalogEntityPage />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {
EntityArgoCDOverviewCard,
isArgocdAvailable
} from '@roadiehq/backstage-plugin-argo-cd';
import { EntityLighthouseContent } from '@backstage/plugin-lighthouse';

import { TechDocsAddons } from '@backstage/plugin-techdocs-react';
import { ReportIssue } from '@backstage/plugin-techdocs-module-addons-contrib';
Expand Down Expand Up @@ -166,6 +167,10 @@ const serviceEntityPage = (
{overviewContent}
</EntityLayout.Route>

<EntityLayout.Route path="/lighthouse" title="Lighthouse">
<EntityLighthouseContent />
</EntityLayout.Route>

<EntityLayout.Route path="/kubernetes" title="Kubernetes">
<EntityKubernetesContent refreshIntervalMs={30000} />
</EntityLayout.Route>
Expand Down
2 changes: 2 additions & 0 deletions internal/services/backstage/shortlink-org/all-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ spec:
targets:
- ./components/shortlink-api.yaml
- ./components/shortlink-billing.yaml
- ./components/shortlink-landing.yaml
- ./components/shortlink-next.yaml
- ./components/k8s-opencost.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: shortlink-landing
description: Shortlink Landing Page
links:
- url: https://github.com/shortlink-org/shortlink/tree/main/ui/landing
title: GitHub Repo
icon: github
tags:
- frontend
- nextjs
annotations:
'backstage.io/kubernetes-namespace': shortlink
'backstage.io/kubernetes-label-selector': 'app.kubernetes.io/name=shortlink-landing'
backstage.io/source-location: url:https://github.com/shortlink-org/shortlink/tree/main/ui/landing
backstage.io/techdocs-ref: url:url:https://github.com/shortlink-org/shortlink/tree/main/ui/landing
lighthouse.com/website-url: https://shortlink.org
spec:
type: service
lifecycle: production
owner: shortlink-org
system: shortlink
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: shortlink-next
description: Shortlink next Page
links:
- url: https://github.com/shortlink-org/shortlink/tree/main/ui/next
title: GitHub Repo
icon: github
tags:
- frontend
- nextjs
annotations:
'backstage.io/kubernetes-namespace': shortlink
'backstage.io/kubernetes-label-selector': 'app.kubernetes.io/name=shortlink-next'
backstage.io/source-location: url:https://github.com/shortlink-org/shortlink/tree/main/ui/next
backstage.io/techdocs-ref: url:url:https://github.com/shortlink-org/shortlink/tree/main/ui/next
lighthouse.com/website-url: https://shortlink.org/next
spec:
type: service
lifecycle: production
owner: shortlink-org
system: shortlink
24 changes: 24 additions & 0 deletions internal/services/backstage/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3119,6 +3119,30 @@
luxon "^3.0.0"
react-use "^17.2.4"

"@backstage/plugin-lighthouse-common@^0.1.0":
version "0.1.0"
resolved "https://registry.yarnpkg.com/@backstage/plugin-lighthouse-common/-/plugin-lighthouse-common-0.1.0.tgz#af7581b170004d54a4424e9d9e8ec474c7ec7eaf"
integrity sha512-ogWVSykHolNf/oRBtnyIw3Qi/zl22rPaaF+5lSPhvEZ3KJEep7a0nPCHm8RYYyoqLPrqzvpYmQ4sWnw6vV96LQ==
dependencies:
"@backstage/config" "^1.0.6"

"@backstage/plugin-lighthouse@^0.4.0":
version "0.4.0"
resolved "https://registry.yarnpkg.com/@backstage/plugin-lighthouse/-/plugin-lighthouse-0.4.0.tgz#3fbfeca6f37986e954695c4a0072f6401b82a75f"
integrity sha512-G5CB7bbxvuD0Be5oQ5n2KyjQQVqMtoMQLkpp+07k+vDu1PNKMY4rUwyHYvEQ7S7u5M3UvTIV0gffrjG25CUfrA==
dependencies:
"@backstage/catalog-model" "^1.2.0"
"@backstage/config" "^1.0.6"
"@backstage/core-components" "^0.12.4"
"@backstage/core-plugin-api" "^1.4.0"
"@backstage/plugin-catalog-react" "^1.3.0"
"@backstage/plugin-lighthouse-common" "^0.1.0"
"@backstage/theme" "^0.2.17"
"@material-ui/core" "^4.12.2"
"@material-ui/icons" "^4.9.1"
"@material-ui/lab" "4.0.0-alpha.57"
react-use "^17.2.4"

"@backstage/plugin-org@^0.6.4":
version "0.6.5"
resolved "https://registry.yarnpkg.com/@backstage/plugin-org/-/plugin-org-0.6.5.tgz#79b819c5596dc94cfef3a30ca0de303eb8c6c023"
Expand Down
2 changes: 1 addition & 1 deletion ops/Helm/addons/prometheus-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application # It is the type of chart (opti
deprecated: false # Whether this chart is deprecated (optional, boolean)
dependencies:
- name: kube-prometheus-stack
version: 45.0.0
version: 45.1.0
repository: https://prometheus-community.github.io/helm-charts
condition: kube-prometheus-stack.enabled
tags:
Expand Down

0 comments on commit c7e3186

Please sign in to comment.