Skip to content

Commit

Permalink
fix: fixup bad kubelet check
Browse files Browse the repository at this point in the history
Signed-off-by: Jakob Möller <jmoller@redhat.com>
  • Loading branch information
jakobmoellerdev committed Apr 26, 2024
1 parent 3cba68e commit 2a02495
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,15 @@ func testE2E() {
"reason=VolumeResizeFailed"
var events corev1.EventList
err = getObjects(&events, "events", "-n", ns, "--field-selector="+fieldSelector)
Expect(err).To(BeEquivalentTo(ErrObjectNotFound))
if !errors.Is(err, ErrObjectNotFound) {
for _, item := range events.Items {
if strings.Contains(item.Message, "the object has been modified; please apply your changes to the latest version and try again") {
By("VolumeResizeFailed event was skipped as it was caused by kubelet resource version inconsistency")
} else {
Fail(fmt.Sprintf("unexpected VolumeResizeFailed event: %s", item.Message))
}
}
}

By("resizing PVC over vg capacity")
claimYAML = []byte(fmt.Sprintf(pvcTemplateYAML, "topo-pvc", "Filesystem", 100*1024, "topolvm-provisioner"))
Expand Down

0 comments on commit 2a02495

Please sign in to comment.