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:
parent
6ae92c0c94
commit
e7fa71d637
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue