mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
e2e: restore volume lifecycle check for most tests, II
Besides "subPath should unmount if pod is gracefully deleted while kubelet is down" we also need a special case for "subPath should unmount if pod is force deleted while kubelet is down". This fixes a test failure in https://testgrid.k8s.io/sig-storage-kubernetes#gce-serial
This commit is contained in:
parent
e99b945b17
commit
5378b4d220
@ -40,6 +40,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
@ -248,8 +249,7 @@ func (h *hostpathCSIDriver) PrepareTest(f *framework.Framework) (*storageframewo
|
|||||||
// test that it breaks.
|
// test that it breaks.
|
||||||
// TODO: enable this check once issue is resolved for csi-host-path driver
|
// TODO: enable this check once issue is resolved for csi-host-path driver
|
||||||
// (https://github.com/kubernetes/kubernetes/pull/104858).
|
// (https://github.com/kubernetes/kubernetes/pull/104858).
|
||||||
if strings.Contains(ginkgo.CurrentGinkgoTestDescription().FullTestText,
|
if regexp.MustCompile("should unmount if pod is.*deleted while kubelet is down").MatchString(ginkgo.CurrentGinkgoTestDescription().FullTestText) {
|
||||||
"should unmount if pod is gracefully deleted while kubelet is down") {
|
|
||||||
o.DriverContainerArguments = append(o.DriverContainerArguments, "--check-volume-lifecycle=false")
|
o.DriverContainerArguments = append(o.DriverContainerArguments, "--check-volume-lifecycle=false")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user