Adding in fixes to get harvester cluster pages rendering

This commit is contained in:
Cody Jackson
2024-10-23 17:00:53 +02:00
committed by Francesco Torchia
parent 40432c8261
commit ab79ed310c
4 changed files with 1122 additions and 10 deletions
+9
View File
@@ -1,6 +1,9 @@
import { importTypes } from '@rancher/auto-import';
import { IPlugin } from '@shell/core/types';
import extensionRoutes from './routing/harvester-routing';
import harvesterCommonStore from './store/harvester-common';
import harvesterStore from './store/harvester-store';
import customValidators from './validators';
// Init the package
export default function (plugin: IPlugin) {
@@ -14,5 +17,11 @@ export default function (plugin: IPlugin) {
plugin.metadata.icon = require('./icon.svg');
plugin.addProduct(require('./config/harvester-manager'));
plugin.addProduct(require('./config/harvester-cluster'));
plugin.addDashboardStore(harvesterCommonStore.config.namespace, harvesterCommonStore.specifics, harvesterCommonStore.config);
plugin.addDashboardStore(harvesterStore.config.namespace, harvesterStore.specifics, harvesterStore.config, harvesterStore.init);
plugin.validators = customValidators;
plugin.addRoutes(extensionRoutes);
}