mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 12:11:43 +00:00
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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user