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 8ca94b2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,17 @@ func testE2E() {
"reason=VolumeResizeFailed"
var events corev1.EventList
err = getObjects(&events, "events", "-n", ns, "--field-selector="+fieldSelector)
Expect(err).To(BeEquivalentTo(ErrObjectNotFound))
wasModified := "the object has been modified; please apply your changes to the latest version and try again"
if !errors.Is(err, ErrObjectNotFound) {
for _, item := range events.Items {
if strings.Contains(item.Message, wasModified) {
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 8ca94b2

Please sign in to comment.