plugin(redhat-argocd): clean up the dev environment and update docs (#1475)

Signed-off-by: Karthik Jeeyar <karthik@redhat.com>
This commit is contained in:
Karthik Jeeyar 2024-10-07 16:25:45 +05:30 committed by GitHub
parent 6ae92c0c94
commit e7fa71d637
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 21 deletions

View File

@ -1,10 +1,27 @@
# [Backstage](https://backstage.io)
# Welcome to Argo CD plugin workspace
This is your newly scaffolded Backstage App, Good Luck!
To configure the argocd application, add argocd instance information in `app.config.yaml`
```
argocd:
appLocatorMethods:
- type: 'config'
instances:
- name: argoInstance1
url: https://argoInstance1.com
username: ${ARGOCD_USERNAME}
password: ${ARGOCD_PASSWORD}
```
To start the app, run:
```sh
yarn install
yarn dev
yarn start:backstage
```
Follow these links to learn more about this plugin:
1. [Frontend](./plugins/redhat-argocd/README.md)
2. [Common](./plugins/redhat-argocd-common/README.md)

View File

@ -14,28 +14,10 @@
* limitations under the License.
*/
import { createBackend } from '@backstage/backend-defaults';
import { dynamicPluginsSchemasServiceFactory } from '@backstage/backend-dynamic-feature-service';
import { PackageRoles } from '@backstage/cli-node';
import { legacyPlugin } from '@backstage/backend-common';
import * as path from 'path';
const backend = createBackend();
backend.add(
dynamicPluginsSchemasServiceFactory({
schemaLocator(pluginPackage) {
const platform = PackageRoles.getRoleInfo(
pluginPackage.manifest.backstage.role,
).platform;
return path.join(
platform === 'node' ? 'dist' : 'dist-scalprum',
'configSchema.json',
);
},
}),
);
backend.add(import('@backstage/plugin-app-backend/alpha'));
backend.add(import('@backstage/plugin-proxy-backend/alpha'));
backend.add(import('@backstage/plugin-scaffolder-backend/alpha'));