mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Switch TerminationGracePeriodSeconds from 0 to 1 seconds
This commit is contained in:
parent
8c7cef2621
commit
11eca39ff6
@ -509,7 +509,7 @@ func listRSDeleteCollection(f *framework.Framework) {
|
||||
ns := f.Namespace.Name
|
||||
c := f.ClientSet
|
||||
rsClient := f.ClientSet.AppsV1().ReplicaSets(ns)
|
||||
zero := int64(0)
|
||||
one := int64(1)
|
||||
rsName := "test-rs"
|
||||
replicas := int32(3)
|
||||
e2eValue := rand.String(5)
|
||||
@ -539,7 +539,7 @@ func listRSDeleteCollection(f *framework.Framework) {
|
||||
framework.ExpectEqual(len(rsList.Items), 1, "filtered list wasn't found")
|
||||
|
||||
ginkgo.By("DeleteCollection of the ReplicaSets")
|
||||
err = rsClient.DeleteCollection(context.TODO(), metav1.DeleteOptions{GracePeriodSeconds: &zero}, metav1.ListOptions{LabelSelector: "e2e=" + e2eValue})
|
||||
err = rsClient.DeleteCollection(context.TODO(), metav1.DeleteOptions{GracePeriodSeconds: &one}, metav1.ListOptions{LabelSelector: "e2e=" + e2eValue})
|
||||
framework.ExpectNoError(err, "failed to delete ReplicaSets")
|
||||
|
||||
ginkgo.By("After DeleteCollection verify that ReplicaSets have been deleted")
|
||||
|
Loading…
Reference in New Issue
Block a user