Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Tekton plugin #24

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The backstage QShift application has been designed to showcase QShift (Quarkus o
- [Kubernetes plugin](https://backstage.io/docs/features/kubernetes/installation)
- [Quarkus plugin](https://github.com/q-shift/backstage-plugins)
- ArgoCD [front](https://github.com/RoadieHQ/roadie-backstage-plugins/tree/main/plugins/frontend/backstage-plugin-argo-cd) & [backend](https://github.com/RoadieHQ/roadie-backstage-plugins/tree/main/plugins/scaffolder-actions/scaffolder-backend-argocd)
- TODO => [Tekton Plugin](https://github.com/janus-idp/backstage-plugins/tree/main/plugins/tekton)
- [Tekton Plugin](https://github.com/janus-idp/backstage-plugins/tree/main/plugins/tekton)

**Note**: It has been developed using backstage version: 1.21.0

Expand Down
9 changes: 8 additions & 1 deletion app-config.qshift-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,11 @@ kubernetes:
authProvider: 'serviceAccount'
skipTLSVerify: true
skipMetricsLookup: true
serviceAccountToken: ${SERVICE_ACCOUNT_TOKEN} # Example: kubectl -n backstage get secret my-backstage-token-2l7b2 -o go-template='{{.data.token | base64decode}}'
serviceAccountToken: ${SERVICE_ACCOUNT_TOKEN} # Example: kubectl -n backstage get secret my-backstage-token-2l7b2 -o go-template='{{.data.token | base64decode}}'
customResources:
- group: 'tekton.dev'
apiVersion: 'v1'
plural: 'pipelineruns'
- group: 'tekton.dev'
apiVersion: 'v1'
plural: 'taskruns'
1 change: 1 addition & 0 deletions packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@backstage/plugin-techdocs-react": "^1.1.14",
"@backstage/plugin-user-settings": "^0.7.14",
"@backstage/theme": "^0.5.0",
"@janus-idp/backstage-plugin-tekton": "^3.5.3",
"@material-ui/core": "^4.12.2",
"@material-ui/icons": "^4.9.1",
"@qshift/plugin-quarkus": "^0.1.18",
Expand Down
8 changes: 8 additions & 0 deletions packages/app/src/components/catalog/EntityPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ import {
EntityArgoCDHistoryCard,
isArgocdAvailable,
} from '@roadiehq/backstage-plugin-argo-cd';
import {
isTektonCIAvailable,
TektonCI,
} from '@janus-idp/backstage-plugin-tekton';


const techdocsContent = (
Expand Down Expand Up @@ -192,6 +196,10 @@ const serviceEntityPage = (
<EntityLayout.Route path="/kubernetes" title="Kubernetes">
<EntityKubernetesContent refreshIntervalMs={30000} />
</EntityLayout.Route>

<EntityLayout.Route path="/pipelines" title="Tekton pipelines">
<TektonCI />
</EntityLayout.Route>
</EntityLayout>
);

Expand Down
Loading
Loading