From 2ae46953fa9c2fb24962b173faeefc7cc2fb1c7d Mon Sep 17 00:00:00 2001 From: Gio <6011354+gioufop@users.noreply.github.com> Date: Tue, 19 Jul 2022 11:05:45 -0300 Subject: [PATCH] update instalation.md adding needed settings after plugin update to version 0.7.0 Signed-off-by: Gio <6011354+gioufop@users.noreply.github.com> --- docs/features/kubernetes/installation.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/features/kubernetes/installation.md b/docs/features/kubernetes/installation.md index 3b0895dd23..5b4e2fa716 100644 --- a/docs/features/kubernetes/installation.md +++ b/docs/features/kubernetes/installation.md @@ -62,13 +62,16 @@ add the following: 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 { + const catalogApi = new CatalogClient({ discoveryApi: env.discovery }); const { router } = await KubernetesBuilder.createBuilder({ logger: env.logger, config: env.config, + catalogApi, }).build(); return router; }