File tree Expand file tree Collapse file tree 4 files changed +7
-10
lines changed
src/components/ResourceBrowser Expand file tree Collapse file tree 4 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -311,8 +311,8 @@ export const NODE_LIST_HEADERS_TO_KEY_MAP: Record<(typeof NODE_LIST_HEADERS)[num
311
311
'node group' : 'nodeGroup' ,
312
312
pods : 'podCount' ,
313
313
taints : 'taintCount' ,
314
- 'cpu usage' : 'cpu.usage ' ,
315
- 'mem usage' : 'memory.usage ' ,
314
+ 'cpu usage' : 'cpu.usagePercentage ' ,
315
+ 'mem usage' : 'memory.usagePercentage ' ,
316
316
age : 'age' ,
317
317
unschedulable : 'unschedulable' ,
318
318
} as const
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ const K8sResourceListTableCellComponent = ({
210
210
lastSeen : resourceData [ EVENT_LIST . dataKeys . lastSeen ] as string ,
211
211
}
212
212
213
- if ( columnName === 'cpu.usage ' ) {
213
+ if ( columnName === 'cpu.usagePercentage ' ) {
214
214
return (
215
215
< K8sResourceListTableUsageCell
216
216
percentage = { resourceData [ 'cpu.usagePercentage' ] as string }
@@ -221,7 +221,7 @@ const K8sResourceListTableCellComponent = ({
221
221
)
222
222
}
223
223
224
- if ( columnName === 'memory.usage ' ) {
224
+ if ( columnName === 'memory.usagePercentage ' ) {
225
225
return (
226
226
< K8sResourceListTableUsageCell
227
227
percentage = { resourceData [ 'memory.usagePercentage' ] as string }
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const K8sResourceListTableUsageCell = ({
35
35
</ div >
36
36
}
37
37
>
38
- < div className = "flexbox-col dc__content-center dc__gap-4 py-10 cursor " >
38
+ < div className = "flexbox-col dc__content-center dc__gap-4 py-10" >
39
39
< div className = "flex left dc__gap-8" >
40
40
< p className = "m-0 fs-13 lh-20 cn-9 flex-grow-1" > { absoluteValue } </ p >
41
41
< p className = "m-0 fs-13 lh-20 cn-7" > { percentage } </ p >
Original file line number Diff line number Diff line change @@ -223,11 +223,8 @@ const propertyComparatorMap = {
223
223
errors : numberInStringComparator ,
224
224
'k8s version' : versionComparatorBySortOrder ,
225
225
taints : numberInStringComparator ,
226
- 'cpu usage (%)' : numberInStringComparator ,
227
- 'cpu allocatable' : numberInStringComparator ,
228
- 'mem usage (%)' : numberInStringComparator ,
229
- 'mem allocatable' : numberInStringComparator ,
230
- 'cpu usage (absolute)' : numberInStringComparator ,
226
+ 'cpu usage' : numberInStringComparator ,
227
+ 'mem usage' : numberInStringComparator ,
231
228
restarts : numberInStringComparator ,
232
229
}
233
230
You can’t perform that action at this time.
0 commit comments