Update garbage-collection.md

This commit is contained in:
devin-donnelly
2017-03-26 18:25:03 -07:00
committed by GitHub
parent 1494504741
commit 9939c7c953
@@ -88,14 +88,14 @@ the following things are true:
* The object's `deletionTimestamp` is set * The object's `deletionTimestamp` is set
* The object's `metadata.finalizers` contains the value "foregroundDeletion". * The object's `metadata.finalizers` contains the value "foregroundDeletion".
Once the "deletion in progress" state is set, the the garbage Once the "deletion in progress" state is set, the garbage
collector deletes the object's dependents. Once the garbage collector has deleted all collector deletes the object's dependents. Once the garbage collector has deleted all
dependents (objects with `ownerReference.blockOwnerDeletion=true`), it delete "blocking" dependents (objects with `ownerReference.blockOwnerDeletion=true`), it delete
the owner object. the owner object.
Note that in the "foregroundDeletion", only dependents with Note that in the "foregroundDeletion", only dependents with
`ownerReference.blockOwnerDeletion` block the deletion of the owner object. `ownerReference.blockOwnerDeletion` block the deletion of the owner object.
Kubernetes version 1.7, will add an admission controller that controls user access to set Kubernetes version 1.7 will add an admission controller that controls user access to set
`blockOwnerDeletion` to true based on delete permissions on the owner object, so that `blockOwnerDeletion` to true based on delete permissions on the owner object, so that
unauthorized dependents cannot delay deletion of an owner object. unauthorized dependents cannot delay deletion of an owner object.