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

Remove references/files for RHDH from ACS plugin #3457

Merged
merged 8 commits into from
Mar 29, 2025
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
5 changes: 5 additions & 0 deletions workspaces/acs/.changeset/bright-hornets-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@backstage-community/plugin-acs': patch
---

Removed all references to RHDH from README and files
34 changes: 0 additions & 34 deletions workspaces/acs/plugins/acs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,40 +83,6 @@ acs:
acsUrl: ${ACS_API_URL}
```

## RHDH Dynamic Plugin Config

The ACS plugin is also available as a [Red Hat Developer Hub (RHDH)](https://github.com/redhat-developer/rhdh) dynamic plugin. The following should be able to run within the [RHDH local](https://github.com/redhat-developer/rhdh-local) repo.

Here's an example of how to configure the ACS plugin as a dynamic plugin in RHDH:

```yaml
- package: '@backstage-community/[email protected]'
disabled: false
pluginConfig:
dynamicPlugins:
frontend:
redhatinsights.backstage-plugin-acs:
entityTabs:
- path: /acs
title: RHACS
mountPoint: entity.page.acs
mountPoints:
- mountPoint: entity.page.acs/cards
importName: EntityACSContent
config:
layout:
gridColumnEnd:
lg: 'span 12'
md: 'span 12'
xs: 'span 12'
```

Each service component entity in the catalog will need to have an annotation added that references the deployment(s) in order to display vulnerability data for them. Here is an example:

```
acs/deployment-name: "test-deployment-1,test-deployment-2,test-deployment-3"
```

## Local Development

### Prerequisites
Expand Down
5 changes: 1 addition & 4 deletions workspaces/acs/plugins/acs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"test": "backstage-cli package test",
"clean": "backstage-cli package clean",
"prepack": "backstage-cli package prepack",
"postpack": "backstage-cli package postpack",
"export-dynamic": "janus-cli package export-dynamic-plugin"
"postpack": "backstage-cli package postpack"
},
"dependencies": {
"@apollo/client": "^3.12.5",
Expand Down Expand Up @@ -65,7 +64,6 @@
"@backstage/dev-utils": "^1.1.6",
"@backstage/frontend-test-utils": "^0.2.6",
"@backstage/test-utils": "^1.7.4",
"@janus-idp/cli": "^1.19.1",
"@testing-library/jest-dom": "^6.0.0",
"@testing-library/react": "^14.0.0",
"@testing-library/user-event": "^14.0.0",
Expand All @@ -76,7 +74,6 @@
"configSchema": "config.d.ts",
"files": [
"dist",
"dist-scalprum",
"config.d.ts"
]
}
Loading