This repository has been archived by the owner on Sep 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add backstage annotations for service discovery
Signed-off-by: Brad McCoy <[email protected]>
- Loading branch information
1 parent
f8e5ae8
commit b3ff37b
Showing
8 changed files
with
102 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# [Backstage](https://backstage.io) | ||
# [Ortelius Backstage Portal](https://backstage.ortelius.io) | ||
|
||
This is your newly scaffolded Backstage App, Good Luck! | ||
This repo is for the Ortelius Backstage Portal. | ||
|
||
To start the app, run: | ||
## Disclaimer 🚧 | ||
|
||
```sh | ||
yarn install | ||
yarn dev | ||
``` | ||
This portal is work in work in progress the first release will be on 15-Dec-22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,26 @@ spec: | |
email: [email protected] | ||
picture: https://avatars.githubusercontent.com/u/25817813?v=4 | ||
memberOf: [devsecops] | ||
--- | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: ortelius-www | ||
annotations: | ||
'backstage.io/kubernetes-id': ortelius-www | ||
spec: | ||
type: service | ||
owner: user:guest | ||
lifecycle: experimental | ||
--- | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: ortelius-docs | ||
annotations: | ||
'backstage.io/kubernetes-id': ortelius-docs | ||
spec: | ||
type: service | ||
owner: user:guest | ||
lifecycle: experimental | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { KubernetesBuilder } from '@backstage/plugin-kubernetes-backend'; | ||
import { Router } from 'express'; | ||
import { PluginEnvironment } from '../types'; | ||
import { CatalogClient } from '@backstage/catalog-client'; | ||
|
||
export default async function createPlugin( | ||
env: PluginEnvironment, | ||
): Promise<Router> { | ||
const catalogApi = new CatalogClient({ discoveryApi: env.discovery }); | ||
const { router } = await KubernetesBuilder.createBuilder({ | ||
logger: env.logger, | ||
config: env.config, | ||
catalogApi, | ||
}).build(); | ||
return router; | ||
} |