mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 01:40:07 +00:00
move PD delete to AfterEach
This commit is contained in:
parent
08fefc9d9a
commit
497a5bbbe2
@ -107,13 +107,10 @@ var _ = framework.KubeDescribe("PersistentVolumes:GCEPD [Volume]", func() {
|
||||
framework.DeletePodWithWait(f, c, clientPod)
|
||||
framework.PVPVCCleanup(c, ns, pv, pvc)
|
||||
clientPod, pv, pvc, node = nil, nil, nil, ""
|
||||
}
|
||||
})
|
||||
|
||||
AddCleanupAction(func() {
|
||||
if len(diskName) > 0 {
|
||||
if diskName != "" {
|
||||
framework.DeletePDWithRetry(diskName)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
// Attach a persistent disk to a pod using a PVC.
|
||||
|
Loading…
Reference in New Issue
Block a user