HorizontalPodAutoscaler API: removal of ResourceConsumption target, introduction of CPU request utilization & other cleanups.
This commit is contained in:
committed by
Filip Grzadkowski
parent
3e5f792f69
commit
df732f061a
@@ -368,6 +368,12 @@ func FuzzerFor(t *testing.T, version string, src rand.Source) *fuzz.Fuzzer {
|
||||
// string, which will cause tests failure.
|
||||
s.APIGroup = "something"
|
||||
},
|
||||
func(s *extensions.HorizontalPodAutoscalerSpec, c fuzz.Continue) {
|
||||
c.FuzzNoCustom(s) // fuzz self without calling this function again
|
||||
minReplicas := c.Rand.Int()
|
||||
s.MinReplicas = &minReplicas
|
||||
s.CPUUtilization = &extensions.CPUTargetUtilization{TargetPercentage: int(c.RandUint64())}
|
||||
},
|
||||
)
|
||||
return f
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user