Skip to content

Commit

Permalink
Merge pull request kubernetes#105670 from pohly/restore-volume-life-c…
Browse files Browse the repository at this point in the history
…ycle-check

e2e: restore volume lifecycle check for most tests, II
  • Loading branch information
k8s-ci-robot authored Oct 14, 2021
2 parents 3f85ed4 + 5378b4d commit fb2556c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e/storage/drivers/csi.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import (
"encoding/json"
"errors"
"fmt"
"regexp"
"strconv"
"strings"
"sync"
Expand Down Expand Up @@ -248,8 +249,7 @@ func (h *hostpathCSIDriver) PrepareTest(f *framework.Framework) (*storageframewo
// test that it breaks.
// TODO: enable this check once issue is resolved for csi-host-path driver
// (https://github.com/kubernetes/kubernetes/pull/104858).
if strings.Contains(ginkgo.CurrentGinkgoTestDescription().FullTestText,
"should unmount if pod is gracefully deleted while kubelet is down") {
if regexp.MustCompile("should unmount if pod is.*deleted while kubelet is down").MatchString(ginkgo.CurrentGinkgoTestDescription().FullTestText) {
o.DriverContainerArguments = append(o.DriverContainerArguments, "--check-volume-lifecycle=false")
}

Expand Down

0 comments on commit fb2556c

Please sign in to comment.