Skip to content

Commit

Permalink
fix(tekton): update README and cleanup (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
divyanshiGupta authored Oct 26, 2023
1 parent b8858fc commit c495515
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 42 deletions.
25 changes: 0 additions & 25 deletions plugins/tekton/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,31 +119,6 @@ The Tekton plugin enables you to visualize the `PipelineRun` resources available
yarn workspace app add @janus-idp/backstage-plugin-tekton
```
1. Enable the **TEKTON** tab on the entity view page using the `packages/app/src/components/catalog/EntityPage.tsx` file:

```tsx title="packages/app/src/components/catalog/EntityPage.tsx"
/* highlight-add-next-line */
import {
isTektonCIAvailable,
TektonPage,
} from '@janus-idp/backstage-plugin-tekton';
const serviceEntityPage = (
<EntityPageLayout>
{/* ... */}
{/* highlight-add-start */}
<EntityLayout.Route
if={isTektonCIAvailable}
path="/tekton"
title="Tekton"
>
<TektonPage />
</EntityLayout.Route>
{/* highlight-add-end */}
</EntityPageLayout>
);
```

1. Enable the PipelineRun list in the **CI/CD** tab on the entity view page.
```tsx title="packages/app/src/components/catalog/EntityPage.tsx"
Expand Down
1 change: 0 additions & 1 deletion plugins/tekton/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { tektonPlugin, TektonCI } from './plugin';
export { TEKTON_CI_ANNOTATION } from './consts/tekton-const';
export { isTektonCIAvailable } from './components/Router';
export { PipelineRunVisualization } from './components/pipeline-topology/PipelineRunVisualization';
5 changes: 0 additions & 5 deletions plugins/tekton/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@ import {
createPlugin,
} from '@backstage/core-plugin-api';

import { rootRouteRef } from './routes';

export const tektonPlugin = createPlugin({
id: 'tekton',
routes: {
root: rootRouteRef,
},
});

export const TektonCI = tektonPlugin.provide(
Expand Down
11 changes: 0 additions & 11 deletions plugins/tekton/src/routes.ts

This file was deleted.

0 comments on commit c495515

Please sign in to comment.