Fix comment in HPA's scale event replicaChange

The field replicaChange in timestampedScaleEvent was wrongly described
as either positive or negative depending on the scale direction. In
fact the change is set as unsigned, positive or 0 even for downscales.
This commit is contained in:
Piotr Betkier 2022-07-27 14:54:41 +02:00
parent ce433f87b4
commit f428705ec6

View File

@ -62,7 +62,7 @@ type timestampedRecommendation struct {
}
type timestampedScaleEvent struct {
replicaChange int32 // positive for scaleUp, negative for scaleDown
replicaChange int32 // absolute value, non-negative
timestamp time.Time
outdated bool
}