Skip to content

Commit 2bbac5c

Browse files
committed
Provider mode: Storage Client list: remove 'Used Capacity' column
Signed-off-by: Alfonso Martínez <[email protected]>
1 parent 22d6d8a commit 2bbac5c

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

locales/en/plugin__odf-console.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,6 @@
10941094
"To connect a storage client to the Data Foundation provider cluster, click <2>Generate client onboarding token</2> and use the token to deploy the client cluster.": "To connect a storage client to the Data Foundation provider cluster, click <2>Generate client onboarding token</2> and use the token to deploy the client cluster.",
10951095
"Cluster name (ID)": "Cluster name (ID)",
10961096
"Storage quota": "Storage quota",
1097-
"Used capacity is the amount of storage consumed by the client.": "Used capacity is the amount of storage consumed by the client.",
10981097
"Openshift version": "Openshift version",
10991098
"Data Foundation version": "Data Foundation version",
11001099
"Last heartbeat": "Last heartbeat",

packages/odf/components/storage-consumers/client-list.tsx

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ const tableColumns = [
117117
className: '',
118118
id: 'storageQuota',
119119
},
120-
{
121-
className: '',
122-
id: 'usedCapacity',
123-
},
124120
{
125121
className: '',
126122
id: 'openshiftVersion',
@@ -176,15 +172,6 @@ const ClientsList: React.FC<ClientListProps> = (props) => {
176172
column.sort = 'status.storageQuotaInGiB';
177173
column.props.info = { popover: <StorageQuotaPopoverContent /> };
178174
break;
179-
case 'usedCapacity':
180-
column.title = t('Used capacity');
181-
column.sort = 'status.usedCapacityInGiB';
182-
column.props.info = {
183-
popover: t(
184-
'Used capacity is the amount of storage consumed by the client.'
185-
),
186-
};
187-
break;
188175
case 'openshiftVersion':
189176
column.title = t('Openshift version');
190177
column.sort = 'status.client.platformVersion';
@@ -322,13 +309,6 @@ const StorageClientRow: React.FC<
322309
QuotaSizeUnitOptions[QuotaSize.Gi]
323310
).string
324311
: t('Unlimited');
325-
const humanizedUsedCapacity =
326-
obj?.spec?.storageQuotaInGiB && obj?.status?.usedCapacityInGiB != null
327-
? humanizeBinaryBytes(
328-
obj?.status?.usedCapacityInGiB,
329-
QuotaSizeUnitOptions[QuotaSize.Gi]
330-
).string
331-
: '-';
332312

333313
React.useEffect(() => {
334314
const setter = () => {
@@ -361,9 +341,6 @@ const StorageClientRow: React.FC<
361341
case 'storageQuota':
362342
data = humanizedStorageQuota;
363343
break;
364-
case 'usedCapacity':
365-
data = humanizedUsedCapacity;
366-
break;
367344
case 'openshiftVersion':
368345
data = getOpenshiftVersion(obj) || '-';
369346
break;

packages/shared/src/types/storage.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ type StorageConsumerStatus = {
185185
cephResources?: CephResourcesSpec[];
186186
lastHeartbeat?: string; // Assuming metav1.Time is a string
187187
client?: ClientStatus;
188-
usedCapacityInGiB: number;
189188
};
190189

191190
type ClientStatus = {

0 commit comments

Comments
 (0)