File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -391,7 +391,17 @@ var _ = SIGDescribe("ResourceQuota", func() {
391
391
framework .ExpectNoError (err )
392
392
393
393
ginkgo .By ("Deleting a ReplicationController" )
394
- err = f .ClientSet .CoreV1 ().ReplicationControllers (f .Namespace .Name ).Delete (replicationController .Name , nil )
394
+ // Without the delete options, the object isn't actually
395
+ // removed until the GC verifies that all children have been
396
+ // detached. ReplicationControllers default to "orphan", which
397
+ // is different from most resources. (Why? To preserve a common
398
+ // workflow from prior to the GC's introduction.)
399
+ err = f .ClientSet .CoreV1 ().ReplicationControllers (f .Namespace .Name ).Delete (replicationController .Name , & metav1.DeleteOptions {
400
+ PropagationPolicy : func () * metav1.DeletionPropagation {
401
+ p := metav1 .DeletePropagationBackground
402
+ return & p
403
+ }(),
404
+ })
395
405
framework .ExpectNoError (err )
396
406
397
407
ginkgo .By ("Ensuring resource quota status released usage" )
You can’t perform that action at this time.
0 commit comments