Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ GINKGO_FLAGS = --vv \
--no-color=$(OPENSHIFT_CI) \
--label-filter="$(TEST_FILTER)" \
--junit-report="$(ARTIFACT_DIR)/junit_report.xml" \
--fail-fast=false
--timeout=2h

.PHONY: test-e2e
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/lib/k8s_common_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/rest"
"k8s.io/client-go/tools/remotecommand"
"k8s.io/utils/ptr"
)

type ProxyPodParameters struct {
Expand Down Expand Up @@ -296,7 +297,7 @@ func DeleteAllPVCsInNamespace(clientset *kubernetes.Clientset, namespace string)
// Delete each PVC
for _, pvc := range pvcList.Items {
log.Printf("Deleting PVC %s in namespace %s", pvc.Name, namespace)
err := clientset.CoreV1().PersistentVolumeClaims(namespace).Delete(ctx, pvc.Name, metav1.DeleteOptions{})
err := clientset.CoreV1().PersistentVolumeClaims(namespace).Delete(ctx, pvc.Name, metav1.DeleteOptions{GracePeriodSeconds: ptr.To(int64(0))})
if err != nil && !apierrors.IsNotFound(err) {
log.Printf("Warning: Failed to delete PVC %s in namespace %s: %v", pvc.Name, namespace, err)
}
Expand Down