Skip to content

Commit

Permalink
fix: filled wrong default-value when edit hpa
Browse files Browse the repository at this point in the history
  • Loading branch information
ymh1028 committed Dec 23, 2019
1 parent 6fd5ee1 commit 7809548
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/utils/object.mapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,23 +230,21 @@ const HpaMapper = item => {
desiredReplicas: get(item, 'status.desiredReplicas', 0),
cpuCurrentUtilization: get(
currentMetrics,
'cpu.resource.current.averageUtilization',
0
'cpu.resource.current.averageUtilization'
),
cpuTargetUtilization: get(
targetMetrics,
'cpu.resource.target.averageUtilization',
0
'cpu.resource.target.averageUtilization'
),
memoryCurrentValue: get(
currentMetrics,
'memory.resource.current.averageValue',
'0'
''
),
memoryTargetValue: get(
targetMetrics,
'memory.resource.target.averageValue',
'0'
''
),
_originData: getOriginData(item),
}
Expand Down

0 comments on commit 7809548

Please sign in to comment.