(feat): New kubernetes backend endpoints (#12393)
* feat: add new kubernetes backend endpoints Signed-off-by: Matthew Clarke <mclarke@spotify.com> * add more tests Signed-off-by: Matthew Clarke <mclarke@spotify.com> * add eslint exceptions Signed-off-by: Matthew Clarke <mclarke@spotify.com> * register new endpoints Signed-off-by: Matthew Clarke <mclarke@spotify.com> * add changeset Signed-off-by: Matthew Clarke <mclarke@spotify.com> * add breaking change ot changeset Signed-off-by: Matthew Clarke <mclarke@spotify.com> * fix tsc in test Signed-off-by: Matthew Clarke <mclarke@spotify.com> * changeset typo Signed-off-by: Matthew Clarke <mclarke@spotify.com> * api report update Signed-off-by: Matthew Clarke <mclarke@spotify.com>
This commit is contained in:
@@ -17,13 +17,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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user