Skip to content

Commit d190cc5

Browse files
authored
Merge pull request #48077 from liggitt/foreground
Clarify foreground deletion behavior of the GC controller in race and sync error conditions
2 parents daf8a33 + 444abaa commit d190cc5

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

content/en/docs/concepts/architecture/garbage-collection.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,16 @@ owner object:
8282
* The object remains visible through the Kubernetes API until the deletion
8383
process is complete.
8484

85-
After the owner object enters the deletion in progress state, the controller
86-
deletes the dependents. After deleting all the dependent objects, the controller
87-
deletes the owner object. At this point, the object is no longer visible in the
85+
After the owner object enters the *deletion in progress* state, the controller
86+
deletes dependents it knows about. After deleting all the dependent objects it knows about,
87+
the controller deletes the owner object. At this point, the object is no longer visible in the
8888
Kubernetes API.
8989

9090
During foreground cascading deletion, the only dependents that block owner
91-
deletion are those that have the `ownerReference.blockOwnerDeletion=true` field.
91+
deletion are those that have the `ownerReference.blockOwnerDeletion=true` field
92+
and are in the garbage collection controller cache. The garbage collection controller
93+
cache may not contain objects whose resource type cannot be listed / watched successfully,
94+
or objects that are created concurrent with deletion of an owner object.
9295
See [Use foreground cascading deletion](/docs/tasks/administer-cluster/use-cascading-deletion/#use-foreground-cascading-deletion)
9396
to learn more.
9497

0 commit comments

Comments
 (0)