Skip to content

Commit 6cc5361

Browse files
Feedback
1 parent 8edace4 commit 6cc5361

File tree

1 file changed

+2
-2
lines changed
  • keps/sig-autoscaling/2021-scale-from-zero

1 file changed

+2
-2
lines changed

keps/sig-autoscaling/2021-scale-from-zero/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Additionally the `replicas: 0` state is problematic as updating a HPA object `mi
263263
will be disabled for the resource, if it was `> 0`, HPA will continue with the new `minReplicas` value.
264264

265265
To resolve this issue the KEP is introducing an explicit `ScaledToZero` condition inside the `HorizontalPodAutoscalerStatus`. When `ScaledToZero=True` was recorded the HPA will scale
266-
up a workload from `0 ~> 1` and otherwise maintain the current behavior of performing no change.
266+
up a workload from `0 ~> 1` and remove the condition `ScaledToZero=True`. If the condition is not found, the HPA maintains the current behavior of performing no change.
267267

268268
When the HPA scales a workload from `1 ~> 0`, it records the `ScaledToZero=True` condition inside the status.
269269

@@ -299,11 +299,11 @@ proposal will be implemented, this is the place to discuss them.
299299
Add `ScaledToZero` as HPA `HorizontalPodAutoscalerConditionType`
300300

301301
```golang
302-
303302
const (
304303
// ScaledToZero indicates that the HPA controller scaled the workload to zero.
305304
ScaledToZero HorizontalPodAutoscalerConditionType = "ScaledToZero"
306305
)
306+
```
307307

308308
### Test Plan
309309

0 commit comments

Comments
 (0)