Skip to content

Commit 59bd90b

Browse files
authored
Merge pull request #3496 from illume/hp-exports
headlamp-plugin: Fix exports registerKubeObjectGlance ConfigStore
2 parents 54fc38d + 528afe5 commit 59bd90b

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

frontend/src/plugin/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ import * as Router from '../lib/router';
4747
import * as Utils from '../lib/util';
4848
import { eventAction, HeadlampEventType } from '../redux/headlampEventSlice';
4949
import store from '../redux/stores/store';
50-
import { ConfigStore } from './configStore';
5150
import { Headlamp, Plugin } from './lib';
5251
import { PluginInfo } from './pluginsSlice';
5352
import Registry, * as registryToExport from './registry';
@@ -61,7 +60,6 @@ window.pluginLib = {
6160
},
6261
MonacoEditor,
6362
K8s,
64-
ConfigStore,
6563
Crd: {
6664
...Crd,
6765
// required for compatibility with plugins built with webpack

frontend/src/plugin/registry.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ import { addOverviewChartsProcessor, OverviewChartsProcessor } from '../redux/ov
9292
import { setRoute, setRouteFilter } from '../redux/routesSlice';
9393
import store from '../redux/stores/store';
9494
import { UIPanel, uiSlice } from '../redux/uiSlice';
95+
import { ConfigStore } from './configStore';
9596
import {
9697
PluginSettingsComponentType,
9798
PluginSettingsDetailsProps,
@@ -1012,4 +1013,5 @@ export {
10121013
getHeadlampAPIHeaders,
10131014
runCommand,
10141015
PluginManager,
1016+
ConfigStore,
10151017
};

plugins/headlamp-plugin/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ import * as ApiProxy from './lib/k8s/apiProxy';
2626
import * as Notification from './lib/notification';
2727
import * as Router from './lib/router';
2828
import * as Utils from './lib/util';
29-
import { ConfigStore } from './plugin/configStore';
3029
import { Headlamp, Plugin } from './plugin/lib';
3130
import { PluginSettingsDetailsProps } from './plugin/pluginsSlice';
3231
import Registry, {
3332
AppLogoProps,
3433
clusterAction,
3534
ClusterChooserProps,
35+
ConfigStore,
3636
DefaultSidebars,
3737
DetailsViewDefaultHeaderActions,
3838
DetailsViewSectionProps,
@@ -50,6 +50,7 @@ import Registry, {
5050
registerDetailsViewSection,
5151
registerGetTokenFunction,
5252
registerKindIcon,
53+
registerKubeObjectGlance,
5354
registerMapSource,
5455
registerPluginSettings,
5556
registerResourceTableColumnsProcessor,
@@ -99,6 +100,7 @@ export {
99100
PluginManager,
100101
registerUIPanel,
101102
registerAppTheme,
103+
registerKubeObjectGlance,
102104
};
103105

104106
export type {

0 commit comments

Comments
 (0)