community-plugins/workspaces/linkerd
Backstage Service Account a54d62242b
Version Packages (#2346)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-12-24 07:26:16 -06:00
..
.changeset Version Packages (#2346) 2024-12-24 07:26:16 -06:00
packages Version Packages (#2346) 2024-12-24 07:26:16 -06:00
plugins Version Packages (#2346) 2024-12-24 07:26:16 -06:00
.dockerignore feat: initial commit and move from benjdlambert/linkerd 2024-05-13 11:55:42 +02:00
.eslintignore feat: initial commit and move from benjdlambert/linkerd 2024-05-13 11:55:42 +02:00
.eslintrc.js chore: fix workspace eslintrc files 2024-09-24 11:13:37 +02:00
.gitignore feat: initial commit and move from benjdlambert/linkerd 2024-05-13 11:55:42 +02:00
.prettierignore feat: initial commit and move from benjdlambert/linkerd 2024-05-13 11:55:42 +02:00
README.md chore: added some instructions for installation 2024-05-17 15:35:14 +02:00
app-config.production.yaml feat: initial commit and move from benjdlambert/linkerd 2024-05-13 11:55:42 +02:00
app-config.yaml chore: fixing samples 2024-05-13 13:23:34 +02:00
backstage.json linkerd - version:bump to v1.34.1 (#2326) 2024-12-23 18:54:49 -06:00
catalog-info.yaml feat: initial commit and move from benjdlambert/linkerd 2024-05-13 11:55:42 +02:00
package.json linkerd - version:bump to v1.34.1 (#2326) 2024-12-23 18:54:49 -06:00
tsconfig.json feat: initial commit and move from benjdlambert/linkerd 2024-05-13 11:55:42 +02:00
yarn.lock linkerd - version:bump to v1.34.1 (#2326) 2024-12-23 18:54:49 -06: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>
);