mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 13:11:43 +00:00
Add Namespaces page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
parent
432fa9b22c
commit
aeabf880f8
@ -14,6 +14,7 @@ import {
|
||||
import { HCI, VOLUME_SNAPSHOT } from '../types';
|
||||
import {
|
||||
STATE,
|
||||
NAME_UNLINKED,
|
||||
NAME as NAME_COL,
|
||||
AGE,
|
||||
NAMESPACE as NAMESPACE_COL,
|
||||
@ -244,6 +245,22 @@ export function init($plugin, store) {
|
||||
exact: true,
|
||||
});
|
||||
|
||||
if (isSingleVirtualCluster) {
|
||||
headers(NAMESPACE, [STATE, NAME_UNLINKED, AGE]);
|
||||
basicType([NAMESPACE]);
|
||||
virtualType({
|
||||
labelKey: 'harvester.namespace.label',
|
||||
name: NAMESPACE,
|
||||
namespaced: true,
|
||||
weight: 89,
|
||||
route: {
|
||||
name: `${ PRODUCT_NAME }-c-cluster-resource`,
|
||||
params: { resource: NAMESPACE }
|
||||
},
|
||||
exact: false,
|
||||
});
|
||||
}
|
||||
|
||||
basicType([
|
||||
HCI.ALERTMANAGERCONFIG
|
||||
], MONITORING_GROUP);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user