Skip to content

Commit a98769a

Browse files
authored
Merge pull request #32365 from my-git9/my-demo-branch318
[zh] Update finalizer.md
2 parents d2f0f22 + 97c6dc0 commit a98769a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/zh/docs/reference/glossary/finalizer.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,16 @@ Finalizer 提醒{{<glossary_tooltip text="控制器" term_id="controller">}}清
4141

4242
<!--
4343
When you tell Kubernetes to delete an object that has finalizers specified for
44-
it, the Kubernetes API marks the object for deletion, putting it into a
45-
read-only state. The target object remains in a terminating state while the
44+
it, the Kubernetes API marks the object for deletion by populating `.metadata.deletionTimestamp`,
45+
and returns a `202` status code (HTTP "Accepted"). The target object remains in a terminating state while the
4646
control plane, or other components, take the actions defined by the finalizers.
4747
After these actions are complete, the controller removes the relevant finalizers
4848
from the target object. When the `metadata.finalizers` field is empty,
4949
Kubernetes considers the deletion complete.
5050
-->
5151
当你告诉 Kubernetes 删除一个指定了 Finalizer 的对象时,
52-
Kubernetes API 会将该对象标记为删除,使其进入只读状态。
52+
Kubernetes API 通过填充 `.metadata.deletionTimestamp` 来标记要删除的对象,
53+
并返回`202`状态码 (HTTP "已接受") 使其进入只读状态。
5354
此时控制平面或其他组件会采取 Finalizer 所定义的行动,
5455
而目标对象仍然处于终止中(Terminating)的状态。
5556
这些行动完成后,控制器会删除目标对象相关的 Finalizer。

0 commit comments

Comments
 (0)