community-plugins/workspaces/linkerd
Kashish Mittal 7c56d99f8a
include knip report checks in ci (#4046)
* include knip report checks in ci

Signed-off-by: Kashish Mittal <kmittal@redhat.com>

* add logs to debug workflow

Signed-off-by: Kashish Mittal <kmittal@redhat.com>

* fix workflow

Signed-off-by: Kashish Mittal <kmittal@redhat.com>

* regen knip reports

Signed-off-by: Kashish Mittal <kmittal@redhat.com>

* ignore prettier for  knip-report.md

Signed-off-by: Kashish Mittal <kmittal@redhat.com>

* add build:knip-reports script to all workspaces

Signed-off-by: Kashish Mittal <kmittal@redhat.com>

---------

Signed-off-by: Kashish Mittal <kmittal@redhat.com>
2025-06-02 13:29:06 -04:00
..
.changeset Version Packages (#4151) 2025-05-30 15:10:04 -05:00
packages Version Packages (#4151) 2025-05-30 15:10:04 -05:00
plugins Version Packages (#4151) 2025-05-30 15:10:04 -05:00
.auto-version-bump meta: enable opt-in to auto version bump workflow (#4031) 2025-05-27 08:57:51 -05:00
.dockerignore
.eslintignore
.eslintrc.js
.gitignore
.prettierignore
README.md
app-config.production.yaml
app-config.yaml
backstage.json linkerd - version:bump to v1.39.0 (#4097) 2025-05-30 14:55:30 -05:00
catalog-info.yaml
package.json include knip report checks in ci (#4046) 2025-06-02 13:29:06 -04:00
tsconfig.json linkerd - version:bump to v1.38.1 (#3729) 2025-04-18 10:04:48 -05:00
yarn.lock linkerd - version:bump to v1.39.0 (#4097) 2025-05-30 14:55:30 -05:00

README.md

Linkerd Plugins for Backstage

Installation instructions

Backend

First off, you're going to want to make sure that you have followed the setup guide to enable the kubernetes plugin in Backstage. You can do that by following this guide for installation and this guide for configuration.

Once you have the kubernetes plugin set up, you can install the linkerd-backend plugin by adding the following to your Backstage by running yarn add @backstage-community/plugin-linkerd-backend in packages/backend and also adding the following in your packages/backend/src/index.ts.

const backend = createBackend();

// Other plugins...

backend.add(import('@backstage-community/plugin-linkerd-backend'));

backend.start();

Frontend

Installing the frontend package is as easy as running yarn install @backstage-community/plugin-linkerd in your packages/app directory. Once you have done that, you can add the some of the cards to your packages/app/src/components/catalog/EntityPage.tsx for use on EntityPages.

const overviewContent = (
  <Grid container spacing={3} alignItems="stretch">
    {entityWarningContent}
    <Grid item md={6}>
      <EntityAboutCard variant="gridItem" />
    </Grid>
    <Grid item md={6} xs={12}>
      <EntitySwitch>
+        <EntitySwitch.Case if={isKubernetesAvailable}>
+           <LinkerdDependenciesCard />
+        </EntitySwitch.Case>
        <EntitySwitch.Case>
          <EntityCatalogGraphCard variant="gridItem" height={400} />
        </EntitySwitch.Case>
      </EntitySwitch>
    </Grid>

    <Grid item md={4} xs={12}>
      <EntityLinksCard />
    </Grid>
    <Grid item md={8} xs={12}>
      <EntityHasSubcomponentsCard variant="gridItem" />
    </Grid>
  </Grid>
);