Merge pull request #96702 from lingsamuel/wait-for-delete-ignore-not-found

Fix `kubectl wait --for=delete` ignore not found
This commit is contained in:
Kubernetes Prow Robot
2021-05-07 20:29:17 -07:00
committed by GitHub
3 changed files with 12 additions and 11 deletions

View File

@@ -1831,6 +1831,14 @@ metadata:
}
})
})
ginkgo.Describe("kubectl wait", func() {
ginkgo.It("should ignore not found error with --for=delete", func() {
ginkgo.By("calling kubectl wait --for=delete")
framework.RunKubectlOrDie(ns, "wait", "--for=delete", "pod/doesnotexist")
framework.RunKubectlOrDie(ns, "wait", "--for=delete", "pod", "--selector=app.kubernetes.io/name=noexist")
})
})
})
// Checks whether the output split by line contains the required elements.