@cyclopsui/backstage-plugin-cyclops
v0.1.1
Published
Lists all Cyclops modules on `/cyclops` so all of the modules can be viewed in a single page. Each module can then be selected and managed separately.
Downloads
5
Readme
Cyclops plugin
Lists all Cyclops modules on /cyclops so all of the modules can be viewed in a single page. Each module can then be selected and managed separately.
You can create a new Module by clicking the Add module button in the top right corner, which will allow you to select a template and enter the configuration through the UI. Once a module is created, you can check its resources and see it on the list above.
Each module can be selected by clicking on its name to list Kubernetes resources deployed for a particular module or to further edit the module.
Through this page, you can view or edit your Kubernetes resources and the module.
Install
Steps for setting up the plugin on your Backstage app:
Have a running Cyclops instance:
- If you don't have a running instance, you can install one by following this two-command tutorial
- Make sure that Cyclops backend (
cyclops-ctrlpod) is running and is reachable. If you installed with the commands above, your Cyclops instance would be reachable from within the same Kubernetes cluster onhttp://cyclops-ctrl.cyclops:8080
Add the plugin to your Backstage instance; you need to add to
packages/app:yarn --cwd packages/app add @cyclopsui/backstage-plugin-cyclopsAdd proxy configuration to your Backstage configuration in
app-config.yamlproxy: endpoints: '/cyclops': target: 'http://cyclops-ctrl.cyclops:8080' changeOrigin: trueRegister routes in
packages/app/src/App.tsximport {CyclopsModulePage, CyclopsPage} from '@cyclopsui/backstage-plugin-cyclops'; const routes = ( <FlatRoutes> ... <Route path="/cyclops" element={<CyclopsPage />} /> <Route path="/cyclops/:moduleName" element={<CyclopsModulePage />} /> ... </FlatRoutes> );Add the plugin button to the sidebar. In file
packages/app/src/components/Root/Root.tsxexport const Root = ({ children }: PropsWithChildren<{}>) => ( <SidebarPage> ... <SidebarItem icon={HomeIcon} to="catalog" text="Home" /> <SidebarItem icon={LibraryBooks} to="cyclops" text="Modules" /> ... </SidebarPage> );
You should now be able to see the sidebar button leading you to the list of modules, as shown in the image above.
