Skip to content

Commit 045370a

Browse files
authored
Merge pull request #30982 from KimDoubleB/cascade-default-background
Update `cascade` default value to background
2 parents 561cb83 + a50453f commit 045370a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/en/blog/_posts/2021-05-14-using-finalizers-to-control-deletion.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ kubectl get configmap
190190
No resources found in default namespace.
191191
```
192192

193-
To sum things up, when there's an override owner reference from a child to a parent, deleting the parent deletes the children automatically. This is called `cascade`. The default for cascade is `true`, however, you can use the --cascade=orphan option for `kubectl delete` to delete an object and orphan its children.
193+
To sum things up, when there's an override owner reference from a child to a parent, deleting the parent deletes the children automatically. This is called `cascade`. The default for cascade is `true`, however, you can use the --cascade=orphan option for `kubectl delete` to delete an object and orphan its children. *Update: starting with kubectl v1.20, the default for cascade is `background`.*
194+
194195

195196
In the following example, there is a parent and a child. Notice the owner references are still included. If I delete the parent using --cascade=orphan, the parent is deleted but the child still exists:
196197

0 commit comments

Comments
 (0)