mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-11 06:02:18 +00:00
e2e: restore volume lifecycle checks for csi-hostpath driver
These tests were previously disabled to work around #79980 https://github.com/kubernetes/kubernetes/commit/f1e1f3a416b70bafadf961518c330ce3b1b5459
This commit is contained in:
@@ -40,7 +40,6 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"regexp"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
@@ -246,14 +245,6 @@ func (h *hostpathCSIDriver) PrepareTest(f *framework.Framework) (*storageframewo
|
|||||||
NodeName: node.Name,
|
NodeName: node.Name,
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable volume lifecycle checks due to issue #103651 for the one
|
|
||||||
// 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 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")
|
|
||||||
}
|
|
||||||
|
|
||||||
cleanup, err := utils.CreateFromManifests(config.Framework, driverNamespace, func(item interface{}) error {
|
cleanup, err := utils.CreateFromManifests(config.Framework, driverNamespace, func(item interface{}) error {
|
||||||
if err := utils.PatchCSIDeployment(config.Framework, o, item); err != nil {
|
if err := utils.PatchCSIDeployment(config.Framework, o, item); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user