mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	move PD delete to AfterEach
This commit is contained in:
		@@ -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.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user