Merge pull request #97344 from towca/jtuznik/ca-e2e-fix

Update autoscaling e2e test after an event message was changed
This commit is contained in:
Kubernetes Prow Robot 2020-12-16 05:38:21 -08:00 committed by GitHub
commit 970b532379
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,7 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() {
framework.ExpectNoError(err)
for _, e := range events.Items {
if e.InvolvedObject.Kind == "Pod" && e.Reason == "NotTriggerScaleUp" && strings.Contains(e.Message, "it wouldn't fit if a new node is added") {
if e.InvolvedObject.Kind == "Pod" && e.Reason == "NotTriggerScaleUp" {
ginkgo.By("NotTriggerScaleUp event found")
eventFound = true
break EventsLoop