Skip to content

Commit c15a08a

Browse files
authored
Fixed deprecated delete cascade 'false' value
`kubectl delete --cascade=false` is now deprecated in favor of `kubectl delete --cascade=orphan`
1 parent 42f7ec3 commit c15a08a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/concepts/workloads/controllers/replicaset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ curl -X DELETE 'localhost:8080/apis/apps/v1/namespaces/default/replicasets/fron
283283

284284
### Deleting just a ReplicaSet
285285

286-
You can delete a ReplicaSet without affecting any of its Pods using [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands#delete) with the `--cascade=false` option.
286+
You can delete a ReplicaSet without affecting any of its Pods using [`kubectl delete`](/docs/reference/generated/kubectl/kubectl-commands#delete) with the `--cascade=orphan` option.
287287
When using the REST API or the `client-go` library, you must set `propagationPolicy` to `Orphan`.
288288
For example:
289289
```shell

0 commit comments

Comments
 (0)