Fix finalizer doc
This commit is contained in:
@@ -19,12 +19,12 @@ to clean up resources the deleted object owned.
|
|||||||
<!--more-->
|
<!--more-->
|
||||||
|
|
||||||
When you tell Kubernetes to delete an object that has finalizers specified for
|
When you tell Kubernetes to delete an object that has finalizers specified for
|
||||||
it, the Kubernetes API marks the object for deletion, putting it into a
|
it, the Kubernetes API marks the object for deletion by populating `.metadata.deletionTimestamp`,
|
||||||
read-only state. The target object remains in a terminating state while the
|
and returns a `202` status code (HTTP "Accepted"). The target object remains in a terminating state while the
|
||||||
control plane, or other components, take the actions defined by the finalizers.
|
control plane, or other components, take the actions defined by the finalizers.
|
||||||
After these actions are complete, the controller removes the relevant finalizers
|
After these actions are complete, the controller removes the relevant finalizers
|
||||||
from the target object. When the `metadata.finalizers` field is empty,
|
from the target object. When the `metadata.finalizers` field is empty,
|
||||||
Kubernetes considers the deletion complete.
|
Kubernetes considers the deletion complete and deletes the object.
|
||||||
|
|
||||||
You can use finalizers to control {{<glossary_tooltip text="garbage collection" term_id="garbage-collection">}}
|
You can use finalizers to control {{<glossary_tooltip text="garbage collection" term_id="garbage-collection">}}
|
||||||
of resources. For example, you can define a finalizer to clean up related resources or
|
of resources. For example, you can define a finalizer to clean up related resources or
|
||||||
|
|||||||
Reference in New Issue
Block a user