Update docs/backend-system/building-plugins-and-modules/08-migrating.md

Signed-off-by: Johan Haals <johan.haals@gmail.com>

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Johan Haals <johan@haals.se>
This commit is contained in:
Johan Haals
2023-01-18 14:55:32 +01:00
committed by GitHub
parent 53294f452a
commit 4a997f5f57
@@ -6,7 +6,7 @@ sidebar_label: Migration Guide
description: How to migrate existing backend plugins to the new backend system
---
Migrating an existing backend plugin to the new backend system is fairly straightforward and similar across as the majority of return a `Router` that is then wired up in the index.ts file. The primary thing that we need to do is to make sure that the dependencies that are required by the plugin are available and then register the router with the http router service.
Migrating an existing backend plugin to the new backend system is fairly straightforward. The process is similar across the majority of plugins which just return a `Router` that is then wired up in the `index.ts` file of your backend. The primary thing that we need to do is to make sure that the dependencies that are required by the plugin are available, and then registering the router with the HTTP router service.
Let's look at an example of migrating the Kubernetes Backend Plugin. In the existing(old) system the kubernetes backend is structured like this: