diff --git a/frontend/packages/ceph-storage-plugin/src/components/dashboard-page/storage-dashboard/details-card.tsx b/frontend/packages/ceph-storage-plugin/src/components/dashboard-page/storage-dashboard/details-card.tsx index 47e39c5b6be..93aac341037 100644 --- a/frontend/packages/ceph-storage-plugin/src/components/dashboard-page/storage-dashboard/details-card.tsx +++ b/frontend/packages/ceph-storage-plugin/src/components/dashboard-page/storage-dashboard/details-card.tsx @@ -16,7 +16,7 @@ import { K8sResourceKind } from '@console/internal/module/k8s/index'; import { getName } from '@console/shared/src/selectors/common'; import { referenceForModel } from '@console/internal/module/k8s/k8s'; import { CephClusterModel } from '../../../models'; -import { CEPH_STORAGE_NAMESPACE, CEPH_CLUSTER_NAME } from '../../../constants/index'; +import { CEPH_STORAGE_NAMESPACE } from '../../../constants/index'; const getInfrastructurePlatform = (infrastructure: K8sResourceKind): string => _.get(infrastructure, 'status.platform'); @@ -36,8 +36,7 @@ const cephClusterResource: FirehoseResource = { kind: referenceForModel(CephClusterModel), namespaced: true, namespace: CEPH_STORAGE_NAMESPACE, - name: CEPH_CLUSTER_NAME, - isList: false, + isList: true, prop: 'ceph', }; @@ -61,7 +60,7 @@ const DetailsCard: React.FC = ({ const cephCluster = _.get(resources, 'ceph'); const cephClusterLoaded = _.get(cephCluster, 'loaded', false); - const cephClusterData = _.get(cephCluster, 'data') as K8sResourceKind; + const cephClusterData = _.get(cephCluster, 'data') as K8sResourceKind[]; return ( @@ -73,7 +72,7 @@ const DetailsCard: React.FC = ({ = ({ diff --git a/frontend/packages/ceph-storage-plugin/src/constants/index.ts b/frontend/packages/ceph-storage-plugin/src/constants/index.ts index 3469ee2cc1b..756ff388182 100644 --- a/frontend/packages/ceph-storage-plugin/src/constants/index.ts +++ b/frontend/packages/ceph-storage-plugin/src/constants/index.ts @@ -3,7 +3,6 @@ export const CEPH_DEGRADED = 'Ceph health is degraded'; export const CEPH_ERROR = 'Ceph health is in error state'; export const CEPH_UNKNOWN = 'Ceph is not available'; export const CEPH_STORAGE_NAMESPACE = 'openshift-storage'; -export const CEPH_CLUSTER_NAME = 'rook-ceph'; export const ONE_HR = '1 Hour'; export const SIX_HR = '6 Hours'; export const TWENTY_FOUR_HR = '24 Hours';