mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 12:18:16 +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.DeletePodWithWait(f, c, clientPod)
 | 
				
			||||||
			framework.PVPVCCleanup(c, ns, pv, pvc)
 | 
								framework.PVPVCCleanup(c, ns, pv, pvc)
 | 
				
			||||||
			clientPod, pv, pvc, node = nil, nil, nil, ""
 | 
								clientPod, pv, pvc, node = nil, nil, nil, ""
 | 
				
			||||||
		}
 | 
								if diskName != "" {
 | 
				
			||||||
	})
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
	AddCleanupAction(func() {
 | 
					 | 
				
			||||||
		if len(diskName) > 0 {
 | 
					 | 
				
			||||||
				framework.DeletePDWithRetry(diskName)
 | 
									framework.DeletePDWithRetry(diskName)
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	})
 | 
						})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Attach a persistent disk to a pod using a PVC.
 | 
						// Attach a persistent disk to a pod using a PVC.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user