mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +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