mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-07-23 02:00:12 +00:00
deflake e2e tests: StatefulSet Non-retain StatefulSetPersistentVolumeClaimPolicy should delete PVCs after adopting pod (WhenScaled)
This commit is contained in:
@@ -1480,6 +1480,9 @@ var _ = SIGDescribe("StatefulSet", func() {
|
||||
err = verifyStatefulSetPVCsExist(ctx, c, ss, []int{0, 1, 2})
|
||||
framework.ExpectNoError(err)
|
||||
|
||||
ginkgo.By("Confirming all pods are running and ready")
|
||||
e2estatefulset.WaitForStatusAvailableReplicas(ctx, c, ss, 3)
|
||||
|
||||
ginkgo.By("Orphaning the 3rd pod")
|
||||
patch, err := json.Marshal(metav1.ObjectMeta{
|
||||
OwnerReferences: []metav1.OwnerReference{},
|
||||
|
||||
Reference in New Issue
Block a user