Skip to content

Commit

Permalink
Merge pull request #24 from ch007m/add-tekton-plugin
Browse files Browse the repository at this point in the history
Add Tekton plugin
  • Loading branch information
cmoulliard committed Feb 5, 2024
2 parents 7be6bad + bc9f148 commit 6233643
Show file tree
Hide file tree
Showing 5 changed files with 1,040 additions and 34 deletions.
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

0 comments on commit 6233643

Please sign in to comment.