forked from backstage/community-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plugin(redhat-argocd): add dev environment for argocd plugin (backsta…
…ge#1178) Signed-off-by: Karthik Jeeyar <[email protected]>
- Loading branch information
1 parent
78caaab
commit ddc7e33
Showing
35 changed files
with
12,319 additions
and
2,594 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 |
---|---|---|
@@ -0,0 +1,102 @@ | ||
app: | ||
title: Red Hat - ArgoCD | ||
baseUrl: http://localhost:3000 | ||
support: | ||
url: https://github.com/backstage/backstage/issues # Used by common ErrorPage | ||
items: # Used by common SupportButton component | ||
- title: Issues | ||
icon: github | ||
links: | ||
- url: https://github.com/backstage/backstage/issues | ||
title: GitHub Issues | ||
- title: Discord Chatroom | ||
icon: chat | ||
links: | ||
- url: https://discord.gg/backstage-687207715902193673 | ||
title: '#backstage' | ||
|
||
organization: | ||
name: Red Hat | ||
|
||
backend: | ||
# Used for enabling authentication, secret is shared by all backend plugins | ||
# See https://backstage.io/docs/auth/service-to-service-auth for | ||
# information on the format | ||
# auth: | ||
# keys: | ||
# - secret: ${BACKEND_SECRET} | ||
baseUrl: http://localhost:7007 | ||
listen: | ||
port: 7007 | ||
# Uncomment the following host directive to bind to specific interfaces | ||
# host: 127.0.0.1 | ||
csp: | ||
connect-src: ["'self'", 'http:', 'https:'] | ||
# Content-Security-Policy directives follow the Helmet format: https://helmetjs.github.io/#reference | ||
# Default Helmet Content-Security-Policy values can be removed by setting the key to false | ||
cors: | ||
origin: http://localhost:3000 | ||
methods: [GET, HEAD, PATCH, POST, PUT, DELETE] | ||
credentials: true | ||
# This is for local development only, it is not recommended to use this in production | ||
# The production database configuration is stored in app-config.production.yaml | ||
database: | ||
client: better-sqlite3 | ||
connection: ':memory:' | ||
# workingDirectory: /tmp # Use this to configure a working directory for the scaffolder, defaults to the OS temp-dir | ||
|
||
integrations: | ||
github: | ||
- host: github.com | ||
# This is a Personal Access Token or PAT from GitHub. You can find out how to generate this token, and more information | ||
# about setting up the GitHub integration here: https://backstage.io/docs/integrations/github/locations#configuration | ||
token: ${GITHUB_TOKEN} | ||
### Example for how to add your GitHub Enterprise instance using the API: | ||
# - host: ghe.example.net | ||
# apiBaseUrl: https://ghe.example.net/api/v3 | ||
# token: ${GHE_TOKEN} | ||
|
||
### Example for how to add a proxy endpoint for the frontend. | ||
### A typical reason to do this is to handle HTTPS and CORS for internal services. | ||
# endpoints: | ||
# '/test': | ||
# target: 'https://example.com' | ||
# changeOrigin: true | ||
|
||
# Reference documentation http://backstage.io/docs/features/techdocs/configuration | ||
# Note: After experimenting with basic setup, use CI/CD to generate docs | ||
# and an external cloud storage when deploying TechDocs for production use-case. | ||
# https://backstage.io/docs/features/techdocs/how-to-guides#how-to-migrate-from-techdocs-basic-to-recommended-deployment-approach | ||
techdocs: | ||
builder: 'local' # Alternatives - 'external' | ||
generator: | ||
runIn: 'docker' # Alternatives - 'local' | ||
publisher: | ||
type: 'local' # Alternatives - 'googleGcs' or 'awsS3'. Read documentation for using alternatives. | ||
|
||
auth: | ||
# see https://backstage.io/docs/auth/ to learn about auth providers | ||
providers: | ||
# See https://backstage.io/docs/auth/guest/provider | ||
guest: {} | ||
|
||
scaffolder: | ||
{} | ||
# see https://backstage.io/docs/features/software-templates/configuration for software template options | ||
|
||
catalog: | ||
import: | ||
entityFilename: catalog-info.yaml | ||
pullRequestBranchName: backstage-integration | ||
rules: | ||
- allow: [Component, System, API, Resource, Location] | ||
locations: | ||
# Local example data, file locations are relative to the backend process, typically `packages/backend` | ||
- type: file | ||
target: ../../examples/entities.yaml | ||
|
||
# Local example organizational data | ||
- type: file | ||
target: ../../examples/org.yaml | ||
rules: | ||
- allow: [User, Group] |
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 |
---|---|---|
|
@@ -6,7 +6,8 @@ metadata: | |
# Example for optional annotations | ||
# annotations: | ||
# github.com/project-slug: backstage/backstage | ||
# backstage.io/techdocs-ref: dir:. | ||
# argocd/app-selector: app.kubernetes.io/instance=rhtap-nodeapp | ||
|
||
spec: | ||
type: website | ||
owner: [email protected] | ||
|
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,41 @@ | ||
--- | ||
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-system | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: System | ||
metadata: | ||
name: examples | ||
spec: | ||
owner: guests | ||
--- | ||
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-component | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Component | ||
metadata: | ||
name: example-app | ||
spec: | ||
type: service | ||
lifecycle: experimental | ||
owner: guests | ||
system: examples | ||
providesApis: [example-grpc-api] | ||
--- | ||
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-api | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: API | ||
metadata: | ||
name: example-grpc-api | ||
spec: | ||
type: grpc | ||
lifecycle: experimental | ||
owner: guests | ||
system: examples | ||
definition: | | ||
syntax = "proto3"; | ||
service Exampler { | ||
rpc Example (ExampleMessage) returns (ExampleMessage) {}; | ||
} | ||
message ExampleMessage { | ||
string example = 1; | ||
}; |
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,17 @@ | ||
--- | ||
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-user | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: User | ||
metadata: | ||
name: guest | ||
spec: | ||
memberOf: [guests] | ||
--- | ||
# https://backstage.io/docs/features/software-catalog/descriptor-format#kind-group | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Group | ||
metadata: | ||
name: guests | ||
spec: | ||
type: team | ||
children: [] |
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 @@ | ||
public |
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 @@ | ||
module.exports = require('@backstage/cli/config/eslint-factory')(__dirname); |
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,83 @@ | ||
{ | ||
"name": "app", | ||
"version": "0.0.0", | ||
"main": "src/index.ts", | ||
"types": "src/index.ts", | ||
"license": "Apache-2.0", | ||
"private": true, | ||
"bundled": true, | ||
"backstage": { | ||
"role": "frontend" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/backstage/community-plugins", | ||
"directory": "workspaces/redhat-argocd/packages/app" | ||
}, | ||
"scripts": { | ||
"start": "backstage-cli package start", | ||
"build": "backstage-cli package build", | ||
"tsc": "tsc", | ||
"clean": "backstage-cli package clean", | ||
"test": "backstage-cli package test --passWithNoTests --coverage", | ||
"lint": "backstage-cli package lint" | ||
}, | ||
"dependencies": { | ||
"@backstage-community/plugin-redhat-argocd": "workspace:^", | ||
"@backstage/app-defaults": "^1.5.9", | ||
"@backstage/catalog-model": "^1.5.0", | ||
"@backstage/core-app-api": "^1.14.2", | ||
"@backstage/core-components": "^0.14.9", | ||
"@backstage/core-plugin-api": "^1.9.3", | ||
"@backstage/integration-react": "^1.1.29", | ||
"@backstage/plugin-api-docs": "^0.11.7", | ||
"@backstage/plugin-catalog": "^1.21.1", | ||
"@backstage/plugin-catalog-common": "^1.0.25", | ||
"@backstage/plugin-catalog-graph": "^0.4.7", | ||
"@backstage/plugin-catalog-import": "^0.12.1", | ||
"@backstage/plugin-catalog-react": "^1.12.2", | ||
"@backstage/plugin-org": "^0.6.27", | ||
"@backstage/plugin-permission-react": "^0.4.24", | ||
"@backstage/plugin-scaffolder": "^1.23.0", | ||
"@backstage/plugin-search": "^1.4.14", | ||
"@backstage/plugin-search-react": "^1.7.13", | ||
"@backstage/plugin-techdocs": "^1.10.7", | ||
"@backstage/plugin-techdocs-module-addons-contrib": "^1.1.12", | ||
"@backstage/plugin-techdocs-react": "^1.2.6", | ||
"@backstage/plugin-user-settings": "^0.8.10", | ||
"@emotion/react": "^11.11.4", | ||
"@emotion/styled": "^11.13.0", | ||
"@mui/icons-material": "^5.15.16", | ||
"@mui/material": "^5.15.16", | ||
"@mui/styles": "^5.15.16", | ||
"@redhat-developer/red-hat-developer-hub-theme": "0.1.10", | ||
"react": "^18.0.0", | ||
"react-dom": "^18.0.0", | ||
"react-router": "^6.23.0", | ||
"react-router-dom": "^6.23.0", | ||
"tss-react": "^4.9.10" | ||
}, | ||
"devDependencies": { | ||
"@backstage/cli": "^0.27.0", | ||
"@testing-library/jest-dom": "6.4.8", | ||
"@testing-library/react": "14.3.1", | ||
"@types/node": "18.19.34", | ||
"@types/react": "18.3.3", | ||
"@types/react-dom": "18.3.0" | ||
}, | ||
"browserslist": { | ||
"production": [ | ||
">0.2%", | ||
"not dead", | ||
"not op_mini all" | ||
], | ||
"development": [ | ||
"last 1 chrome version", | ||
"last 1 firefox version", | ||
"last 1 safari version" | ||
] | ||
}, | ||
"files": [ | ||
"dist" | ||
] | ||
} |
Binary file added
BIN
+13.3 KB
workspaces/redhat-argocd/packages/app/public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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,61 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Backstage is an open platform for building developer portals" | ||
/> | ||
<link rel="apple-touch-icon" href="<%= publicPath %>/logo192.png" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link | ||
rel="manifest" | ||
href="<%= publicPath %>/manifest.json" | ||
crossorigin="use-credentials" | ||
/> | ||
<link rel="icon" href="<%= publicPath %>/favicon.ico" /> | ||
<link rel="shortcut icon" href="<%= publicPath %>/favicon.ico" /> | ||
<link | ||
rel="apple-touch-icon" | ||
sizes="180x180" | ||
href="<%= publicPath %>/apple-touch-icon.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="32x32" | ||
href="<%= publicPath %>/favicon-32x32.png" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/png" | ||
sizes="16x16" | ||
href="<%= publicPath %>/favicon-16x16.png" | ||
/> | ||
<link | ||
rel="mask-icon" | ||
href="<%= publicPath %>/safari-pinned-tab.svg" | ||
color="#5bbad5" | ||
/> | ||
<title><%= config.getOptionalString('app.title') ?? 'Backstage' %></title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `yarn start`. | ||
To create a production bundle, use `yarn build`. | ||
--> | ||
</body> | ||
</html> |
15 changes: 15 additions & 0 deletions
15
workspaces/redhat-argocd/packages/app/public/manifest.json
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,15 @@ | ||
{ | ||
"short_name": "Backstage", | ||
"name": "Backstage", | ||
"icons": [ | ||
{ | ||
"src": "favicon.ico", | ||
"sizes": "48x48", | ||
"type": "image/png" | ||
} | ||
], | ||
"start_url": "./index.html", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} |
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,2 @@ | ||
# https://www.robotstxt.org/robotstxt.html | ||
User-agent: * |
1 change: 1 addition & 0 deletions
1
workspaces/redhat-argocd/packages/app/public/safari-pinned-tab.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.