Skip to content

Commit bf4cc5b

Browse files
authored
Merge pull request kubernetes#89408 from gavinfish/delete-cleanup
Delete Cleanup method in e2e util
2 parents ebf5679 + 6ea1578 commit bf4cc5b

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

test/e2e/framework/util.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -553,17 +553,6 @@ func RandomSuffix() string {
553553
return strconv.Itoa(rand.Intn(10000))
554554
}
555555

556-
// Cleanup stops everything from filePath from namespace ns and checks if everything matching selectors from the given namespace is correctly stopped.
557-
func Cleanup(filePath, ns string, selectors ...string) {
558-
ginkgo.By("using delete to clean up resources")
559-
var nsArg string
560-
if ns != "" {
561-
nsArg = fmt.Sprintf("--namespace=%s", ns)
562-
}
563-
RunKubectlOrDie(ns, "delete", "--grace-period=0", "-f", filePath, nsArg)
564-
AssertCleanup(ns, selectors...)
565-
}
566-
567556
// AssertCleanup asserts that cleanup of a namespace wrt selectors occurred.
568557
func AssertCleanup(ns string, selectors ...string) {
569558
var nsArg string

0 commit comments

Comments
 (0)