Skip to content

Commit 91396ad

Browse files
author
ewezy
committed
Update min and step size for autoscaling target field
1 parent fb3c71e commit 91396ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/src/router/components/form/components/autoscaling_policy/AutoscalingPolicyPanel.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,10 @@ export const AutoscalingPolicyPanel = ({
9393
onChange={(e) => onChangeTarget(e.target.value)}
9494
isInvalid={!!errors.target}
9595
name="memory"
96-
min={1}
97-
step={1}
96+
// The min value is set as 0.005 because it's the smallest value, when rounded to 2 decimal places, gives
97+
// 0.01, the smallest value accepted as an autoscaling target (concurrency).
98+
min={0.005}
99+
step={"any"}
98100
append={selectedMetric.unit}
99101
/>
100102
</EuiFormRow>

0 commit comments

Comments
 (0)